1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 23:42:52 +01:00
llvm-mirror/test/Regression/Transforms/Mem2Reg/UndefValuesMerge.ll
Chris Lattner f47b3f67d9 New testcase, no PHI should be inserted.
llvm-svn: 17097
2004-10-17 21:25:32 +00:00

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
}