blob: 2da7013cd5e8a91a6f70f612104ddf054293f5b4 [file] [log] [blame]
Chris Lattnerd0476732004-10-17 21:25:32 +00001; RUN: llvm-as < %s | opt -mem2reg | llvm-dis | not grep phi
2
3implementation
4
5int %testfunc(bool %C, int %i, sbyte %j) {
6 %I = alloca int
7 br bool %C, label %T, label %Cont
8T:
9 store int %i, int* %I
10 br label %Cont
11Cont:
12 %Y = load int* %I ;; %Y = phi %i, undef -> %Y = %i
13 ret int %Y
14}