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