1 ; RUN: opt < %s -passes=indvars -S | FileCheck %s
4 ; CHECK: printd(i32 1206807378)
6 declare void @printd(i32)
13 %tmp3 = add i32 %x.0, %i.0 ; <i32> [#uses=1]
14 %tmp5 = add i32 %i.0, 1 ; <i32> [#uses=1]
17 bb6: ; preds = %bb, %entry
18 %i.0 = phi i32 [ 0, %entry ], [ %tmp5, %bb ] ; <i32> [#uses=3]
19 %x.0 = phi i32 [ 0, %entry ], [ %tmp3, %bb ] ; <i32> [#uses=3]
20 %tmp8 = icmp slt i32 %i.0, 123456789 ; <i1> [#uses=1]
21 br i1 %tmp8, label %bb, label %bb10
24 call void @printd(i32 %x.0)