1 ; RUN: opt -indvars -scalar-evolution -analyze %s 2 ; This test checks if the SCEV analysis is printed out at all. 3 ; It failed once as the RequiredTransitive option was not implemented 4 ; correctly. 5 6 define i32 @main() nounwind { 7 entry: 8 br label %for.cond 9 10 for.cond: ; preds = %for.inc, %entry 11 %indvar1 = phi i64 [ %indvar.next2, %for.inc ], [ 0, %entry ] ; <i64> [#uses=3] 12 %exitcond = icmp ne i64 %indvar1, 1024 ; <i1> [#uses=1] 13 br i1 %exitcond, label %for.body, label %for.end 14 15 for.body: ; preds = %for.cond 16 br label %for.inc 17 18 for.inc: ; preds = %for.body 19 %indvar.next2 = add i64 %indvar1, 1 ; <i64> [#uses=1] 20 br label %for.cond 21 22 for.end: ; preds = %for.cond 23 ret i32 0 24 } 25