1; RUN: llc < %s -mtriple=x86_64-appel-darwin -disable-cgp-branch-opts -stats |& grep {machine-sink}
2
3define fastcc void @t() nounwind ssp {
4entry:
5  br i1 undef, label %bb, label %bb4
6
7bb:                                               ; preds = %entry
8  br i1 undef, label %return, label %bb3
9
10bb3:                                              ; preds = %bb
11  unreachable
12
13bb4:                                              ; preds = %entry
14  br i1 undef, label %bb.nph, label %return
15
16bb.nph:                                           ; preds = %bb4
17  br label %bb5
18
19bb5:                                              ; preds = %bb9, %bb.nph
20  %indvar = phi i64 [ 0, %bb.nph ], [ %tmp12, %bb9 ] ; <i64> [#uses=1]
21  %tmp12 = add i64 %indvar, 1                     ; <i64> [#uses=2]
22  %tmp13 = trunc i64 %tmp12 to i32                ; <i32> [#uses=0]
23  br i1 undef, label %bb9, label %bb6
24
25bb6:                                              ; preds = %bb5
26  br i1 undef, label %bb9, label %bb7
27
28bb7:                                              ; preds = %bb6
29  br i1 undef, label %bb9, label %bb8
30
31bb8:                                              ; preds = %bb7
32  unreachable
33
34bb9:                                              ; preds = %bb7, %bb6, %bb5
35  br i1 undef, label %bb5, label %return
36
37return:                                           ; preds = %bb9, %bb4, %bb
38  ret void
39}
40