llvm.org GIT mirror llvm / 41b2dc4
New testcase, no PHI should be inserted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17097 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 14 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -mem2reg | llvm-dis | not grep phi
1
2 implementation
3
4 int %testfunc(bool %C, int %i, sbyte %j) {
5 %I = alloca int
6 br bool %C, label %T, label %Cont
7 T:
8 store int %i, int* %I
9 br label %Cont
10 Cont:
11 %Y = load int* %I ;; %Y = phi %i, undef -> %Y = %i
12 ret int %Y
13 }