brintos

brintos / llvm-project-archived public Read only

0
0
Text · 409 B · cf388f0 Raw
20 lines · plain
1; RUN: opt < %s -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck %s2; PR20033 4; CHECK: umax5 6define i32 @foo(i32 %n) {7entry:8        br label %header9header:10        %i = phi i32 [ 100, %entry ], [ %i.inc, %next ]11        %cond = icmp ult i32 %i, %n12        br i1 %cond, label %next, label %return13next:14        %i.inc = add i32 %i, 115        br label %header16return:17        ret i32 %i18}19 20