Evan Cheng | 3b1d306 | 2007-08-14 23:34:50 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin |
| 2 | ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -stats -info-output-file - | grep "re-materializable defs elided" |
| 3 | |
| 4 | %struct.CONTENTBOX = type { i32, i32, i32, i32, i32 } |
| 5 | %struct.LOCBOX = type { i32, i32, i32, i32 } |
| 6 | %struct.SIDEBOX = type { i32, i32 } |
| 7 | %struct.UNCOMBOX = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 } |
| 8 | %struct.cellbox = type { i8*, i32, i32, i32, [9 x i32], i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, i32, i32, %struct.CONTENTBOX*, %struct.UNCOMBOX*, [8 x %struct.tilebox*], %struct.SIDEBOX* } |
| 9 | %struct.termbox = type { %struct.termbox*, i32, i32, i32, i32, i32 } |
| 10 | %struct.tilebox = type { %struct.tilebox*, double, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.termbox*, %struct.LOCBOX* } |
| 11 | @numcells = external global i32 ; <i32*> [#uses=1] |
| 12 | @cellarray = external global %struct.cellbox** ; <%struct.cellbox***> [#uses=1] |
| 13 | @numBinsY = external global i32 ; <i32*> [#uses=1] |
| 14 | |
| 15 | define fastcc void @fixpenal() { |
| 16 | entry: |
| 17 | %tmp491 = load i32* @numcells, align 4 ; <i32> [#uses=1] |
| 18 | %tmp9 = load %struct.cellbox*** @cellarray, align 4 ; <%struct.cellbox**> [#uses=1] |
| 19 | %tmp77.i = load i32* @numBinsY, align 4 ; <i32> [#uses=2] |
| 20 | br label %bb490 |
| 21 | |
| 22 | bb8: ; preds = %bb490, %cond_false428 |
| 23 | br i1 false, label %cond_false58.i, label %cond_false.i |
| 24 | |
| 25 | cond_false.i: ; preds = %bb8 |
| 26 | ret void |
| 27 | |
| 28 | cond_false58.i: ; preds = %bb8 |
| 29 | %highBinX.0.i = select i1 false, i32 1, i32 0 ; <i32> [#uses=2] |
| 30 | br i1 false, label %cond_next85.i, label %cond_false76.i |
| 31 | |
| 32 | cond_false76.i: ; preds = %cond_false58.i |
| 33 | ret void |
| 34 | |
| 35 | cond_next85.i: ; preds = %cond_false58.i |
| 36 | br i1 false, label %cond_next105.i, label %cond_false98.i |
| 37 | |
| 38 | cond_false98.i: ; preds = %cond_next85.i |
| 39 | ret void |
| 40 | |
| 41 | cond_next105.i: ; preds = %cond_next85.i |
| 42 | %tmp108.i = icmp eq i32 1, %highBinX.0.i ; <i1> [#uses=1] |
| 43 | %tmp115.i = icmp eq i32 1, %tmp77.i ; <i1> [#uses=1] |
| 44 | %bothcond.i = and i1 %tmp115.i, %tmp108.i ; <i1> [#uses=1] |
| 45 | %storemerge.i = select i1 %bothcond.i, i32 1, i32 0 ; <i32> [#uses=2] |
| 46 | br i1 false, label %whoOverlaps.exit, label %bb503.preheader.i |
| 47 | |
| 48 | bb503.preheader.i: ; preds = %bb513.i, %cond_next105.i |
| 49 | %i.022.0.i = phi i32 [ %tmp512.i, %bb513.i ], [ 0, %cond_next105.i ] ; <i32> [#uses=2] |
| 50 | %tmp165.i = getelementptr i32*** null, i32 %i.022.0.i ; <i32***> [#uses=0] |
| 51 | br label %bb503.i |
| 52 | |
| 53 | bb137.i: ; preds = %bb503.i |
| 54 | br i1 false, label %bb162.i, label %bb148.i |
| 55 | |
| 56 | bb148.i: ; preds = %bb137.i |
| 57 | ret void |
| 58 | |
| 59 | bb162.i: ; preds = %bb137.i |
| 60 | %tmp49435.i = load i32* null ; <i32> [#uses=1] |
| 61 | br label %bb170.i |
| 62 | |
| 63 | bb170.i: ; preds = %bb491.i, %bb162.i |
| 64 | %indvar.i = phi i32 [ %k.032.0.i, %bb491.i ], [ 0, %bb162.i ] ; <i32> [#uses=2] |
| 65 | %k.032.0.i = add i32 %indvar.i, 1 ; <i32> [#uses=2] |
| 66 | %tmp173.i = getelementptr i32* null, i32 %k.032.0.i ; <i32*> [#uses=1] |
| 67 | %tmp174.i = load i32* %tmp173.i ; <i32> [#uses=4] |
| 68 | %tmp177.i = icmp eq i32 %tmp174.i, %cell.1 ; <i1> [#uses=1] |
| 69 | %tmp184.i = icmp sgt i32 %tmp174.i, %tmp491 ; <i1> [#uses=1] |
| 70 | %bothcond = or i1 %tmp177.i, %tmp184.i ; <i1> [#uses=1] |
| 71 | br i1 %bothcond, label %bb491.i, label %cond_next188.i |
| 72 | |
| 73 | cond_next188.i: ; preds = %bb170.i |
| 74 | %tmp191.i = getelementptr %struct.cellbox** %tmp9, i32 %tmp174.i ; <%struct.cellbox**> [#uses=1] |
| 75 | %tmp192.i = load %struct.cellbox** %tmp191.i ; <%struct.cellbox*> [#uses=1] |
| 76 | %tmp195.i = icmp eq i32 %tmp174.i, 0 ; <i1> [#uses=1] |
| 77 | br i1 %tmp195.i, label %bb491.i, label %cond_true198.i |
| 78 | |
| 79 | cond_true198.i: ; preds = %cond_next188.i |
| 80 | %tmp210.i = getelementptr %struct.cellbox* %tmp192.i, i32 0, i32 3 ; <i32*> [#uses=0] |
| 81 | ret void |
| 82 | |
| 83 | bb491.i: ; preds = %cond_next188.i, %bb170.i |
| 84 | %tmp490.i = add i32 %indvar.i, 2 ; <i32> [#uses=1] |
| 85 | %tmp496.i = icmp slt i32 %tmp49435.i, %tmp490.i ; <i1> [#uses=1] |
| 86 | br i1 %tmp496.i, label %bb500.i, label %bb170.i |
| 87 | |
| 88 | bb500.i: ; preds = %bb491.i |
| 89 | %indvar.next82.i = add i32 %j.0.i, 1 ; <i32> [#uses=1] |
| 90 | br label %bb503.i |
| 91 | |
| 92 | bb503.i: ; preds = %bb500.i, %bb503.preheader.i |
| 93 | %j.0.i = phi i32 [ 0, %bb503.preheader.i ], [ %indvar.next82.i, %bb500.i ] ; <i32> [#uses=2] |
| 94 | %tmp506.i = icmp sgt i32 %j.0.i, %tmp77.i ; <i1> [#uses=1] |
| 95 | br i1 %tmp506.i, label %bb513.i, label %bb137.i |
| 96 | |
| 97 | bb513.i: ; preds = %bb503.i |
| 98 | %tmp512.i = add i32 %i.022.0.i, 1 ; <i32> [#uses=2] |
| 99 | %tmp516.i = icmp sgt i32 %tmp512.i, %highBinX.0.i ; <i1> [#uses=1] |
| 100 | br i1 %tmp516.i, label %whoOverlaps.exit, label %bb503.preheader.i |
| 101 | |
| 102 | whoOverlaps.exit: ; preds = %bb513.i, %cond_next105.i |
| 103 | br i1 false, label %cond_false428, label %bb490 |
| 104 | |
| 105 | cond_false428: ; preds = %whoOverlaps.exit |
| 106 | br i1 false, label %bb497, label %bb8 |
| 107 | |
| 108 | bb490: ; preds = %whoOverlaps.exit, %entry |
| 109 | %binY.tmp.2 = phi i32 [ 0, %entry ], [ %storemerge.i, %whoOverlaps.exit ] ; <i32> [#uses=1] |
| 110 | %cell.1 = phi i32 [ 1, %entry ], [ 0, %whoOverlaps.exit ] ; <i32> [#uses=1] |
| 111 | br i1 false, label %bb497, label %bb8 |
| 112 | |
| 113 | bb497: ; preds = %bb490, %cond_false428 |
| 114 | %binY.tmp.3 = phi i32 [ %binY.tmp.2, %bb490 ], [ %storemerge.i, %cond_false428 ] ; <i32> [#uses=0] |
| 115 | ret void |
| 116 | } |