1 ; RUN: opt < %s -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck %s
5 define void @test1() nounwind {
9 for.cond: ; preds = %if.end, %entry
10 %i.0 = phi i32 [ 2, %entry ], [ %dec, %if.end ]
11 switch i32 %i.0, label %if.end [
16 if.then: ; preds = %for.cond
20 if.end: ; preds = %for.cond, %if.then
21 %dec = add nsw i32 %i.0, -1
24 for.end: ; preds = %for.cond
28 ; CHECK: Loop %for.cond: backedge-taken count is 2
29 ; CHECK: Loop %for.cond: constant max backedge-taken count is 2