brintos

brintos / llvm-project-archived public Read only

0
0
Text · 409 B · 234594d Raw
18 lines · plain
1; RUN: opt < %s "-passes=print<scalar-evolution>" -disable-output 2>&1 | FileCheck %s2; PR20023 4; CHECK: Loop %loop: backedge-taken count is (100 + (-100 smax %n))5define void @foo(i8 %n) {6entry:7	br label %loop8loop:9	%i = phi i8 [ -100, %entry ], [ %i.inc, %next ]10	%cond = icmp slt i8 %i, %n11	br i1 %cond, label %next, label %return12next:13        %i.inc = add i8 %i, 114	br label %loop15return:16	ret void17}18