• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -indvars -S | grep printd | grep 1206807378
2; PR1798
3
4declare void @printd(i32)
5
6define i32 @test() {
7entry:
8	br label %bb6
9
10bb:		; preds = %bb6
11	%tmp3 = add i32 %x.0, %i.0		; <i32> [#uses=1]
12	%tmp5 = add i32 %i.0, 1		; <i32> [#uses=1]
13	br label %bb6
14
15bb6:		; preds = %bb, %entry
16	%i.0 = phi i32 [ 0, %entry ], [ %tmp5, %bb ]		; <i32> [#uses=3]
17	%x.0 = phi i32 [ 0, %entry ], [ %tmp3, %bb ]		; <i32> [#uses=3]
18	%tmp8 = icmp slt i32 %i.0, 123456789		; <i1> [#uses=1]
19	br i1 %tmp8, label %bb, label %bb10
20
21bb10:		; preds = %bb6
22	call void @printd(i32 %x.0)
23	ret i32 0
24}
25