2011-06-16 00:03:21 +00:00
|
|
|
; Make sure EdgeBoundles handles the case when the function size is less then
|
|
|
|
; the number of block IDs.
|
2012-06-08 23:15:12 +00:00
|
|
|
; RUN: llc -regalloc=fast -optimize-regalloc=0 < %s
|
2011-06-16 00:03:21 +00:00
|
|
|
|
2011-06-16 00:34:10 +00:00
|
|
|
define void @foo() nounwind {
|
2011-06-16 00:03:21 +00:00
|
|
|
entry:
|
|
|
|
br i1 undef, label %bb5.i1632, label %bb1.i1605
|
|
|
|
|
|
|
|
bb1.i1605: ; preds = %entry
|
|
|
|
br i1 undef, label %bb5.i73.i, label %bb3.i68.i
|
|
|
|
|
|
|
|
bb3.i68.i: ; preds = %bb1.i1605
|
|
|
|
unreachable
|
|
|
|
|
|
|
|
bb5.i73.i: ; preds = %bb1.i1605
|
|
|
|
br i1 undef, label %bb7.i79.i, label %bb6.i76.i
|
|
|
|
|
|
|
|
bb6.i76.i: ; preds = %bb5.i73.i
|
|
|
|
unreachable
|
|
|
|
|
|
|
|
bb7.i79.i: ; preds = %bb5.i73.i
|
|
|
|
br i1 undef, label %bb.i.i1608, label %bb8.i82.i
|
|
|
|
|
|
|
|
bb8.i82.i: ; preds = %bb7.i79.i
|
|
|
|
unreachable
|
|
|
|
|
|
|
|
bb.i.i1608: ; preds = %bb.i.i1608, %bb7.i79.i
|
2011-06-16 00:34:10 +00:00
|
|
|
br i1 undef, label %bb1.i.dis.preheader_crit_edge.i, label %bb.i.i1608
|
2011-06-16 00:03:21 +00:00
|
|
|
|
2011-06-16 00:34:10 +00:00
|
|
|
bb1.i.dis.preheader_crit_edge.i: ; preds = %bb.i.i1608
|
|
|
|
br label %dis.i
|
2011-06-16 00:03:21 +00:00
|
|
|
|
|
|
|
bb3.i.i1610: ; preds = %bb8.i.i, %bb7.i.i1615
|
|
|
|
br i1 undef, label %bb5.i.i1613, label %bb4.i.i1611
|
|
|
|
|
|
|
|
bb4.i.i1611: ; preds = %bb3.i.i1610
|
|
|
|
br label %bb5.i.i1613
|
|
|
|
|
|
|
|
bb5.i.i1613: ; preds = %bb4.i.i1611, %bb3.i.i1610
|
|
|
|
unreachable
|
|
|
|
|
2011-06-16 00:34:10 +00:00
|
|
|
bb7.i.i1615: ; preds = %getfloder.exit.i
|
2011-06-16 00:03:21 +00:00
|
|
|
br i1 undef, label %bb3.i.i1610, label %bb8.i.i
|
|
|
|
|
|
|
|
bb8.i.i: ; preds = %bb7.i.i1615
|
|
|
|
br i1 undef, label %bb3.i.i1610, label %bb9.i.i
|
|
|
|
|
|
|
|
bb9.i.i: ; preds = %bb8.i.i
|
|
|
|
br label %bb12.i.i
|
|
|
|
|
|
|
|
bb12.i.i: ; preds = %bb12.i.i, %bb9.i.i
|
|
|
|
br i1 undef, label %bb13.i.bb14.i_crit_edge.i, label %bb12.i.i
|
|
|
|
|
|
|
|
bb13.i.bb14.i_crit_edge.i: ; preds = %bb12.i.i
|
|
|
|
br i1 undef, label %bb25.i.i, label %bb20.i.i
|
|
|
|
|
|
|
|
bb19.i.i: ; preds = %bb20.i.i
|
|
|
|
br label %bb20.i.i
|
|
|
|
|
|
|
|
bb20.i.i: ; preds = %bb19.i.i, %bb13.i.bb14.i_crit_edge.i
|
|
|
|
%or.cond.i = or i1 undef, undef
|
|
|
|
br i1 %or.cond.i, label %bb25.i.i, label %bb19.i.i
|
|
|
|
|
|
|
|
bb25.i.i: ; preds = %bb20.i.i, %bb13.i.bb14.i_crit_edge.i
|
|
|
|
unreachable
|
|
|
|
|
|
|
|
bb5.i1632: ; preds = %entry
|
|
|
|
unreachable
|
|
|
|
|
2011-06-16 00:34:10 +00:00
|
|
|
dis.i: ; preds = %getfloder.exit.i, %bb1.i.dis.preheader_crit_edge.i
|
2011-06-16 00:03:21 +00:00
|
|
|
br i1 undef, label %bb.i96.i, label %bb1.i102.i
|
|
|
|
|
2011-06-16 00:34:10 +00:00
|
|
|
bb.i96.i: ; preds = %dis.i
|
|
|
|
br label %getfloder.exit.i
|
2011-06-16 00:03:21 +00:00
|
|
|
|
2011-06-16 00:34:10 +00:00
|
|
|
bb1.i102.i: ; preds = %dis.i
|
|
|
|
br label %getfloder.exit.i
|
2011-06-16 00:03:21 +00:00
|
|
|
|
2011-06-16 00:34:10 +00:00
|
|
|
getfloder.exit.i: ; preds = %bb1.i102.i, %bb.i96.i
|
|
|
|
br i1 undef, label %bb7.i.i1615, label %dis.i
|
2011-06-16 00:03:21 +00:00
|
|
|
}
|