1; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s 2 3target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 4target triple = "x86_64-unknown-linux-gnu" 5 6define void @f_0() { 7; CHECK-LABEL: Printing analysis 'Scalar Evolution Analysis' for function 'f_0': 8; CHECK: Loop %for.body: backedge-taken count is 5 9; CHECK: Loop %for.body: max backedge-taken count is 5 10; CHECK: Loop %for.body: Predicated backedge-taken count is 5 11 12entry: 13 br label %for.body 14 15for.body: 16 %i.05 = phi i32 [ 32, %entry ], [ %div4, %for.body ] 17 tail call void @dummy() 18 %div4 = lshr i32 %i.05, 1 19 %cmp = icmp eq i32 %div4, 0 20 br i1 %cmp, label %for.cond.cleanup, label %for.body 21 22for.cond.cleanup: 23 ret void 24} 25 26declare void @dummy() 27