1 ; Make sure EdgeBoundles handles the case when the function size is less then
2 ; the number of block IDs.
3 ; RUN: llc -regalloc=fast -optimize-regalloc=0 < %s
5 define void @foo() nounwind {
7 br i1 undef, label %bb5.i1632, label %bb1.i1605
9 bb1.i1605: ; preds = %entry
10 br i1 undef, label %bb5.i73.i, label %bb3.i68.i
12 bb3.i68.i: ; preds = %bb1.i1605
15 bb5.i73.i: ; preds = %bb1.i1605
16 br i1 undef, label %bb7.i79.i, label %bb6.i76.i
18 bb6.i76.i: ; preds = %bb5.i73.i
21 bb7.i79.i: ; preds = %bb5.i73.i
22 br i1 undef, label %bb.i.i1608, label %bb8.i82.i
24 bb8.i82.i: ; preds = %bb7.i79.i
27 bb.i.i1608: ; preds = %bb.i.i1608, %bb7.i79.i
28 br i1 undef, label %bb1.i.dis.preheader_crit_edge.i, label %bb.i.i1608
30 bb1.i.dis.preheader_crit_edge.i: ; preds = %bb.i.i1608
33 bb3.i.i1610: ; preds = %bb8.i.i, %bb7.i.i1615
34 br i1 undef, label %bb5.i.i1613, label %bb4.i.i1611
36 bb4.i.i1611: ; preds = %bb3.i.i1610
39 bb5.i.i1613: ; preds = %bb4.i.i1611, %bb3.i.i1610
42 bb7.i.i1615: ; preds = %getfloder.exit.i
43 br i1 undef, label %bb3.i.i1610, label %bb8.i.i
45 bb8.i.i: ; preds = %bb7.i.i1615
46 br i1 undef, label %bb3.i.i1610, label %bb9.i.i
48 bb9.i.i: ; preds = %bb8.i.i
51 bb12.i.i: ; preds = %bb12.i.i, %bb9.i.i
52 br i1 undef, label %bb13.i.bb14.i_crit_edge.i, label %bb12.i.i
54 bb13.i.bb14.i_crit_edge.i: ; preds = %bb12.i.i
55 br i1 undef, label %bb25.i.i, label %bb20.i.i
57 bb19.i.i: ; preds = %bb20.i.i
60 bb20.i.i: ; preds = %bb19.i.i, %bb13.i.bb14.i_crit_edge.i
61 %or.cond.i = or i1 undef, undef
62 br i1 %or.cond.i, label %bb25.i.i, label %bb19.i.i
64 bb25.i.i: ; preds = %bb20.i.i, %bb13.i.bb14.i_crit_edge.i
67 bb5.i1632: ; preds = %entry
70 dis.i: ; preds = %getfloder.exit.i, %bb1.i.dis.preheader_crit_edge.i
71 br i1 undef, label %bb.i96.i, label %bb1.i102.i
73 bb.i96.i: ; preds = %dis.i
74 br label %getfloder.exit.i
76 bb1.i102.i: ; preds = %dis.i
77 br label %getfloder.exit.i
79 getfloder.exit.i: ; preds = %bb1.i102.i, %bb.i96.i
80 br i1 undef, label %bb7.i.i1615, label %dis.i