mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 16:33:37 +01:00
4572ce85b0
llvm-svn: 33296
15 lines
303 B
LLVM
15 lines
303 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | 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
|
|
}
|