Factor out code that optimize loop terminating condition.
[llvm/msp430.git] / test / Transforms / ADCE / 2002-01-31-UseStuckAround.ll
blob893d82b9f5e0f7ebe0ba6503ec11ee520a6b216f
1 ; RUN:  llvm-as %s -o - | opt -adce
3 define i32 @"main"(i32 %argc)
4 begin
5         br label %2
7         %retval = phi i32 [ %argc, %2 ]         ; <i32> [#uses=2]
8         %two = add i32 %retval, %retval         ; <i32> [#uses=1]
9         ret i32 %two
11         br label %1
12 end