mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
41b2dc4133
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17097 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
288 B
LLVM
15 lines
288 B
LLVM
; RUN: llvm-as < %s | opt -mem2reg | llvm-dis | not grep phi
|
|
|
|
implementation
|
|
|
|
int %testfunc(bool %C, int %i, sbyte %j) {
|
|
%I = alloca int
|
|
br bool %C, label %T, label %Cont
|
|
T:
|
|
store int %i, int* %I
|
|
br label %Cont
|
|
Cont:
|
|
%Y = load int* %I ;; %Y = phi %i, undef -> %Y = %i
|
|
ret int %Y
|
|
}
|