Use references to attribute groups on the call/invoke instructions.
[oota-llvm.git] / test / Analysis / ScalarEvolution / 2007-09-27-LargeStepping.ll
1 ; RUN: opt < %s -analyze -scalar-evolution \
2 ; RUN:   -scalar-evolution-max-iterations=0 | grep "backedge-taken count is 13"
3 ; PR1706
4
5 define i32 @f() {
6 entry:
7         br label %bb5
8
9 bb:             ; preds = %bb5
10         %tmp2 = shl i32 %j.0, 1         ; <i32> [#uses=1]
11         %tmp4 = add i32 %i.0, 268435456         ; <i32> [#uses=1]
12         br label %bb5
13
14 bb5:            ; preds = %bb, %entry
15         %j.0 = phi i32 [ 1, %entry ], [ %tmp2, %bb ]            ; <i32> [#uses=2]
16         %i.0 = phi i32 [ -1879048192, %entry ], [ %tmp4, %bb ]          ; <i32> [#uses=2]
17         %tmp7 = icmp slt i32 %i.0, 1610612736           ; <i1> [#uses=1]
18         br i1 %tmp7, label %bb, label %return
19
20 return:         ; preds = %bb5
21         ret i32 %j.0
22 }