brintos

brintos / llvm-project-archived public Read only

0
0
Text · 461 B · af7b048 Raw
22 lines · plain
1; RUN: opt < %s -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck %s2; PR18103 4define void @fun() {5entry:6        br label %header7header:8        %i = phi i32 [ 1, %entry ], [ %i.next, %body ]9        %cond = icmp eq i32 %i, 1010        br i1 %cond, label %exit, label %body11body:12        %a = mul i32 %i, 513        %b = or i32 %a, 114        %i.next = add i32 %i, 115        br label %header16exit:        17        ret void18}19 20; CHECK: -->  %b21 22