1 ; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution
2 ; RUN: opt < %s -disable-output -scalar-evolution
11 loop_1: ; preds = %loop_1, %entry
12 %a = phi i32 [ 2, %entry ], [ %b, %loop_1 ] ; <i32> [#uses=2]
13 %c = phi i32 [ 5, %entry ], [ %d, %loop_1 ] ; <i32> [#uses=1]
14 %b = add i32 %a, 1 ; <i32> [#uses=1]
15 %d = add i32 %c, %a ; <i32> [#uses=3]
16 %A = icmp ult i32 %d, 50 ; <i1> [#uses=1]
17 br i1 %A, label %loop_1, label %endloop
19 endloop: ; preds = %loop_1
20 call void @use(i32 %d)