aha, DAE does have to think about PHI nodes. Many thanks to "Dr Evil" (aka Duncan)
[oota-llvm.git] / test / Transforms / ADCE / 2002-01-31-UseStuckAround.ll
1 ; RUN:  llvm-as %s -o - | opt -adce
2
3 define i32 @"main"(i32 %argc)
4 begin
5         br label %2
6
7         %retval = phi i32 [ %argc, %2 ]         ; <i32> [#uses=2]
8         %two = add i32 %retval, %retval         ; <i32> [#uses=1]
9         ret i32 %two
10
11         br label %1
12 end
13