1 ; RUN: opt -indvars %s -disable-output
2 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
4 declare i32 @putchar(i8) nounwind
6 define void @t2(i1* %P) nounwind {
10 ; <label>:1 ; preds = %1, %0
11 %2 = phi double [ 9.000000e+00, %0 ], [ %4, %1 ] ; <double> [#uses=1]
12 %3 = tail call i32 @putchar(i8 72) ; <i32> [#uses=0]
13 %4 = fadd double %2, -1.000000e+00 ; <double> [#uses=2]
14 %5 = fcmp ult double %4, 0.000000e+00 ; <i1> [#uses=1]
16 br i1 %5, label %6, label %1
18 ; <label>:6 ; preds = %1
23 define void @fannkuch() nounwind {
24 entry: ; preds = %entry
27 bb12: ; preds = %bb29, %entry
28 %i.1 = phi i32 [ undef, %entry ], [ %i.0, %bb29 ] ; <i32> [#uses=2]
29 %r.1 = phi i32 [ undef, %entry ], [ %r.0, %bb29 ] ; <i32> [#uses=2]
30 br i1 undef, label %bb13, label %bb24
35 bb24: ; preds = %bb30, %bb13, %bb12
36 %i.2 = phi i32 [ %i.1, %bb13 ], [ %i.0, %bb30 ], [ %i.1, %bb12 ] ; <i32> [#uses=1]
37 %r.0 = phi i32 [ %r.1, %bb13 ], [ %2, %bb30 ], [ %r.1, %bb12 ] ; <i32> [#uses=3]
41 %0 = add nsw i32 %i.0, 1 ; <i32> [#uses=1]
44 bb28: ; preds = %bb27, %bb26
45 %i.0 = phi i32 [ %i.2, %bb24 ], [ %0, %bb27 ] ; <i32> [#uses=4]
46 %1 = icmp slt i32 %i.0, %r.0 ; <i1> [#uses=1]
47 br i1 %1, label %bb27, label %bb29
50 br i1 undef, label %bb12, label %bb30
53 %2 = add nsw i32 %r.0, 1 ; <i32> [#uses=1]