When removing a function from the function set and adding it to deferred, we
[llvm.git] / test / Transforms / IndVarSimplify / 2003-09-12-MultiplePred.ll
blobecd5086f73089d302e4e933980ce8ec0673bb05d
1 ; RUN: opt < %s -indvars -S | grep indvar
3 define i32 @test() {
4 ; <label>:0
5         br i1 true, label %LoopHead, label %LoopHead
7 LoopHead:               ; preds = %LoopHead, %0, %0
8         %A = phi i32 [ 7, %0 ], [ 7, %0 ], [ %B, %LoopHead ]            ; <i32> [#uses=1]
9         %B = add i32 %A, 1              ; <i32> [#uses=2]
10         br i1 true, label %LoopHead, label %Out
12 Out:            ; preds = %LoopHead
13         ret i32 %B