llvm.org GIT mirror llvm / fe09dd4
remvoe two tests that cee has never gotten right git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36803 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
2 changed file(s) with 0 addition(s) and 70 deletion(s). Raw diff Collapse all Expand all
+0
-44
test/Transforms/CorrelatedExprs/looptest.ll less more
None ; This testcase tests to see if adds and PHI's are handled in their full
1 ; generality. This testcase comes from the following C code:
2 ;
3 ; void f() {
4 ; int i;
5 ; for (i = 1; i < 100; i++) {
6 ; if (i)
7 ; g();
8 ; }
9 ; }
10 ;
11 ; Note that this is a "feature" test, not a correctness test.
12 ;
13 ; XFAIL: *
14 ; RUN: llvm-upgrade < %s | llvm-as | opt -cee -simplifycfg | llvm-dis | \
15 ; RUN: not grep cond213
16 ; END.
17 ;
18 implementation ; Functions:
19
20 declare void %g()
21
22 void %f() {
23 bb0: ; No predecessors!
24 br label %bb2
25
26 bb2: ; preds = %bb4, %bb0
27 %cann-indvar = phi int [ 0, %bb0 ], [ %add1-indvar, %bb4 ] ; [#uses=2]
28 %add1-indvar = add int %cann-indvar, 1 ; [#uses=2]
29 %cond213 = seteq int %add1-indvar, 0 ; [#uses=1]
30 br bool %cond213, label %bb4, label %bb3
31
32 bb3: ; preds = %bb2
33 call void %g( )
34 br label %bb4
35
36 bb4: ; preds = %bb3, %bb2
37 %reg109 = add int %cann-indvar, 2 ; [#uses=1]
38 %cond217 = setle int %reg109, 99 ; [#uses=1]
39 br bool %cond217, label %bb2, label %bb5
40
41 bb5: ; preds = %bb4
42 ret void
43 }
+0
-26
test/Transforms/CorrelatedExprs/nullpointer.ll less more
None ; a load or store of a pointer indicates that the pointer is not null.
1 ; Any succeeding uses of the pointer should get this info
2 ;
3 ; XFAIL: *
4 ; RUN: llvm-upgrade < %s | llvm-as | opt -cee -instcombine -simplifycfg | \
5 ; RUN: llvm-dis | not grep br
6 ; END.
7
8 implementation ; Functions:
9
10 declare void %foo()
11 declare void %bar()
12
13 int %nullptr(int* %j) {
14 bb0:
15 store int 7, int* %j ; j != null
16 %cond220 = seteq int* %j, null ; F
17 br bool %cond220, label %bb3, label %bb4 ; direct branch
18
19 bb3:
20 call void %foo()
21 ret int 4 ; Dead code
22 bb4:
23 call void %bar()
24 ret int 3 ; Live code
25 }