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 4 5 define void @foo() nounwind { 6 entry: 7 br i1 undef, label %bb5.i1632, label %bb1.i1605 8 9 bb1.i1605: ; preds = %entry 10 br i1 undef, label %bb5.i73.i, label %bb3.i68.i 11 12 bb3.i68.i: ; preds = %bb1.i1605 13 unreachable 14 15 bb5.i73.i: ; preds = %bb1.i1605 16 br i1 undef, label %bb7.i79.i, label %bb6.i76.i 17 18 bb6.i76.i: ; preds = %bb5.i73.i 19 unreachable 20 21 bb7.i79.i: ; preds = %bb5.i73.i 22 br i1 undef, label %bb.i.i1608, label %bb8.i82.i 23 24 bb8.i82.i: ; preds = %bb7.i79.i 25 unreachable 26 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 29 30 bb1.i.dis.preheader_crit_edge.i: ; preds = %bb.i.i1608 31 br label %dis.i 32 33 bb3.i.i1610: ; preds = %bb8.i.i, %bb7.i.i1615 34 br i1 undef, label %bb5.i.i1613, label %bb4.i.i1611 35 36 bb4.i.i1611: ; preds = %bb3.i.i1610 37 br label %bb5.i.i1613 38 39 bb5.i.i1613: ; preds = %bb4.i.i1611, %bb3.i.i1610 40 unreachable 41 42 bb7.i.i1615: ; preds = %getfloder.exit.i 43 br i1 undef, label %bb3.i.i1610, label %bb8.i.i 44 45 bb8.i.i: ; preds = %bb7.i.i1615 46 br i1 undef, label %bb3.i.i1610, label %bb9.i.i 47 48 bb9.i.i: ; preds = %bb8.i.i 49 br label %bb12.i.i 50 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 53 54 bb13.i.bb14.i_crit_edge.i: ; preds = %bb12.i.i 55 br i1 undef, label %bb25.i.i, label %bb20.i.i 56 57 bb19.i.i: ; preds = %bb20.i.i 58 br label %bb20.i.i 59 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 63 64 bb25.i.i: ; preds = %bb20.i.i, %bb13.i.bb14.i_crit_edge.i 65 unreachable 66 67 bb5.i1632: ; preds = %entry 68 unreachable 69 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 72 73 bb.i96.i: ; preds = %dis.i 74 br label %getfloder.exit.i 75 76 bb1.i102.i: ; preds = %dis.i 77 br label %getfloder.exit.i 78 79 getfloder.exit.i: ; preds = %bb1.i102.i, %bb.i96.i 80 br i1 undef, label %bb7.i.i1615, label %dis.i 81 } 82