1 ; RUN: opt < %s -loop-reduce -S | grep phi | count 1
3 define void @foo(i32 %n) {
8 %i = phi i32 [ 0, %entry ], [ %i.next, %loop ]
10 ; These three instructions form an isolated cycle and can be deleted.
11 %j = phi i32 [ 0, %entry ], [ %j.y, %loop ]
13 %j.y = mul i32 %j.x, 2
15 %i.next = add i32 %i, 1
16 %c = icmp ne i32 %i.next, %n
17 br i1 %c, label %loop, label %exit