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