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