blob: 27fe714089be8e5c55b1c5788de17a0d23f6f676 [file] [log] [blame]
Edward O'Callaghan8af43fb2009-10-27 14:54:46 +00001; RUN: opt < %s -analyze -scalar-evolution -disable-output | FileCheck %s
Nick Lewyckyef947492007-11-20 08:24:44 +00002; PR1810
3
4define void @fun() {
5entry:
6 br label %header
7header:
8 %i = phi i32 [ 1, %entry ], [ %i.next, %body ]
9 %cond = icmp eq i32 %i, 10
10 br i1 %cond, label %exit, label %body
11body:
12 %a = mul i32 %i, 5
13 %b = or i32 %a, 1
14 %i.next = add i32 %i, 1
15 br label %header
16exit:
17 ret void
18}
Edward O'Callaghan8af43fb2009-10-27 14:54:46 +000019
20; CHECK: --> %b
21