llvm.org GIT mirror llvm / 3888aa0
Remove the need for -disable-correct-folding from this test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54354 91177308-0d34-0410-b5e6-96231b3b80d8 Owen Anderson 12 years ago
1 changed file(s) with 12 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin
1 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -disable-correct-folding -stats -info-output-file - | grep "Number of re-materialization" | grep 3
1 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -stats -info-output-file - | grep "Number of re-materialization" | grep 3
22
33 %struct.CONTENTBOX = type { i32, i32, i32, i32, i32 }
44 %struct.LOCBOX = type { i32, i32, i32, i32 }
1919 br label %bb490
2020
2121 bb8: ; preds = %bb490, %cond_false428
22 br i1 false, label %cond_false58.i, label %cond_false.i
22 %foo3 = phi i1 [ 0, %bb490 ], [ 1, %cond_false428 ]
23 br i1 %foo3, label %cond_false58.i, label %cond_false.i
2324
2425 cond_false.i: ; preds = %bb8
2526 ret void
2627
2728 cond_false58.i: ; preds = %bb8
2829 %highBinX.0.i = select i1 false, i32 1, i32 0 ; [#uses=2]
29 br i1 false, label %cond_next85.i, label %cond_false76.i
30 br i1 %foo3, label %cond_next85.i, label %cond_false76.i
3031
3132 cond_false76.i: ; preds = %cond_false58.i
3233 ret void
3334
3435 cond_next85.i: ; preds = %cond_false58.i
35 br i1 false, label %cond_next105.i, label %cond_false98.i
36 br i1 %foo3, label %cond_next105.i, label %cond_false98.i
3637
3738 cond_false98.i: ; preds = %cond_next85.i
3839 ret void
4243 %tmp115.i = icmp eq i32 1, %tmp77.i ; [#uses=1]
4344 %bothcond.i = and i1 %tmp115.i, %tmp108.i ; [#uses=1]
4445 %storemerge.i = select i1 %bothcond.i, i32 1, i32 0 ; [#uses=2]
45 br i1 false, label %whoOverlaps.exit, label %bb503.preheader.i
46 br i1 %bothcond.i, label %whoOverlaps.exit, label %bb503.preheader.i
4647
4748 bb503.preheader.i: ; preds = %bb513.i, %cond_next105.i
4849 %i.022.0.i = phi i32 [ %tmp512.i, %bb513.i ], [ 0, %cond_next105.i ] ; [#uses=2]
5051 br label %bb503.i
5152
5253 bb137.i: ; preds = %bb503.i
53 br i1 false, label %bb162.i, label %bb148.i
54 br i1 %tmp506.i, label %bb162.i, label %bb148.i
5455
5556 bb148.i: ; preds = %bb137.i
5657 ret void
99100 br i1 %tmp516.i, label %whoOverlaps.exit, label %bb503.preheader.i
100101
101102 whoOverlaps.exit: ; preds = %bb513.i, %cond_next105.i
102 br i1 false, label %cond_false428, label %bb490
103 %foo = phi i1 [ 1, %bb513.i], [0, %cond_next105.i]
104 br i1 %foo, label %cond_false428, label %bb490
103105
104106 cond_false428: ; preds = %whoOverlaps.exit
105 br i1 false, label %bb497, label %bb8
107 br i1 %foo, label %bb497, label %bb8
106108
107109 bb490: ; preds = %whoOverlaps.exit, %entry
108110 %binY.tmp.2 = phi i32 [ 0, %entry ], [ %storemerge.i, %whoOverlaps.exit ] ; [#uses=1]
109111 %cell.1 = phi i32 [ 1, %entry ], [ 0, %whoOverlaps.exit ] ; [#uses=1]
110 br i1 false, label %bb497, label %bb8
112 %foo2 = phi i1 [ 1, %entry], [0, %whoOverlaps.exit]
113 br i1 %foo2, label %bb497, label %bb8
111114
112115 bb497: ; preds = %bb490, %cond_false428
113116 %binY.tmp.3 = phi i32 [ %binY.tmp.2, %bb490 ], [ %storemerge.i, %cond_false428 ] ; [#uses=0]