aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-08-16 00:00:54 +0000
committerOwen Anderson <resistor@mac.com>2008-08-16 00:00:54 +0000
commit7c856c09cd5a2d6231d2f03e383bbc165833df8c (patch)
treef6072cd0e61d3da912f6f25845db748dddcabf89 /test/Transforms
parent3688f268cb31dbfb5b36131d96af668fa2fc6a8d (diff)
Remove GCSE and LoadVN from the testsuite.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54832 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/GCSE/2002-05-14-OperandSwap.ll17
-rw-r--r--test/Transforms/GCSE/2002-05-21-NoSharedDominator.ll14
-rw-r--r--test/Transforms/GCSE/2003-06-13-LoadStoreEliminate.ll11
-rw-r--r--test/Transforms/GCSE/dg.exp3
-rw-r--r--test/Transforms/GCSE/gcsetests.ll46
-rw-r--r--test/Transforms/GCSE/vectorops.ll24
-rw-r--r--test/Transforms/InstCombine/GEPIdxCanon.ll2
-rw-r--r--test/Transforms/InstCombine/getelementptr_const.ll2
-rw-r--r--test/Transforms/LICM/2003-05-02-LoadHoist.ll2
-rw-r--r--test/Transforms/Reassociate/basictest3.ll2
-rw-r--r--test/Transforms/Reassociate/basictest4.ll2
-rw-r--r--test/Transforms/SimplifyCFG/2006-08-03-Crash.ll2
12 files changed, 6 insertions, 121 deletions
diff --git a/test/Transforms/GCSE/2002-05-14-OperandSwap.ll b/test/Transforms/GCSE/2002-05-14-OperandSwap.ll
deleted file mode 100644
index ca4ac201fe..0000000000
--- a/test/Transforms/GCSE/2002-05-14-OperandSwap.ll
+++ /dev/null
@@ -1,17 +0,0 @@
-; This entire chain of computation should be optimized away, but
-; wasn't because the two multiplies were not detected as being identical.
-;
-; RUN: llvm-as < %s | opt -gcse -instcombine -dce | \
-; RUN: llvm-dis | not grep sub
-
-define i32 @vnum_test4(i32* %data) {
- %idx1 = getelementptr i32* %data, i64 1 ; <i32*> [#uses=1]
- %idx2 = getelementptr i32* %data, i64 3 ; <i32*> [#uses=1]
- %reg1101 = load i32* %idx1 ; <i32> [#uses=2]
- %reg1111 = load i32* %idx2 ; <i32> [#uses=2]
- %reg109 = mul i32 %reg1101, %reg1111 ; <i32> [#uses=1]
- %reg108 = mul i32 %reg1111, %reg1101 ; <i32> [#uses=1]
- %reg121 = sub i32 %reg108, %reg109 ; <i32> [#uses=1]
- ret i32 %reg121
-}
-
diff --git a/test/Transforms/GCSE/2002-05-21-NoSharedDominator.ll b/test/Transforms/GCSE/2002-05-21-NoSharedDominator.ll
deleted file mode 100644
index cf288b8171..0000000000
--- a/test/Transforms/GCSE/2002-05-21-NoSharedDominator.ll
+++ /dev/null
@@ -1,14 +0,0 @@
-; This testcase shows a bug where an common subexpression exists, but there
-; is no shared dominator block that the expression can be hoisted out to.
-;
-; RUN: llvm-as < %s | opt -gcse | llvm-dis
-
-define i32 @test(i32 %X, i32 %Y) {
- %Z = add i32 %X, %Y ; <i32> [#uses=1]
- ret i32 %Z
-
-Unreachable: ; No predecessors!
- %Q = add i32 %X, %Y ; <i32> [#uses=1]
- ret i32 %Q
-}
-
diff --git a/test/Transforms/GCSE/2003-06-13-LoadStoreEliminate.ll b/test/Transforms/GCSE/2003-06-13-LoadStoreEliminate.ll
deleted file mode 100644
index d4bdc3f5a0..0000000000
--- a/test/Transforms/GCSE/2003-06-13-LoadStoreEliminate.ll
+++ /dev/null
@@ -1,11 +0,0 @@
-; This testcase shows a bug where an common subexpression exists, but there
-; is no shared dominator block that the expression can be hoisted out to.
-;
-; RUN: llvm-as < %s | opt -load-vn -gcse | llvm-dis | not grep load
-
-define i32 @test(i32* %P) {
- store i32 5, i32* %P
- %Z = load i32* %P ; <i32> [#uses=1]
- ret i32 %Z
-}
-
diff --git a/test/Transforms/GCSE/dg.exp b/test/Transforms/GCSE/dg.exp
deleted file mode 100644
index f2005891a5..0000000000
--- a/test/Transforms/GCSE/dg.exp
+++ /dev/null
@@ -1,3 +0,0 @@
-load_lib llvm.exp
-
-RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]]
diff --git a/test/Transforms/GCSE/gcsetests.ll b/test/Transforms/GCSE/gcsetests.ll
deleted file mode 100644
index 6fb3057acb..0000000000
--- a/test/Transforms/GCSE/gcsetests.ll
+++ /dev/null
@@ -1,46 +0,0 @@
-; Various test cases to ensure basic functionality is working for GCSE
-
-; RUN: llvm-as < %s | opt -gcse
-
-define void @testinsts(i32 %i, i32 %j, i32* %p) {
- %A = bitcast i32 %i to i32 ; <i32> [#uses=0]
- %B = bitcast i32 %i to i32 ; <i32> [#uses=0]
- %C = shl i32 %i, 1 ; <i32> [#uses=0]
- %D = shl i32 %i, 1 ; <i32> [#uses=0]
- %E = getelementptr i32* %p, i64 12 ; <i32*> [#uses=0]
- %F = getelementptr i32* %p, i64 12 ; <i32*> [#uses=0]
- %G = getelementptr i32* %p, i64 13 ; <i32*> [#uses=0]
- ret void
-}
-
-; Test different combinations of domination properties...
-define void @sameBBtest(i32 %i, i32 %j) {
- %A = add i32 %i, %j ; <i32> [#uses=1]
- %B = add i32 %i, %j ; <i32> [#uses=1]
- %C = xor i32 %A, -1 ; <i32> [#uses=0]
- %D = xor i32 %B, -1 ; <i32> [#uses=0]
- %E = xor i32 %j, -1 ; <i32> [#uses=0]
- ret void
-}
-
-define i32 @dominates(i32 %i, i32 %j) {
- %A = add i32 %i, %j ; <i32> [#uses=0]
- br label %BB2
-
-BB2: ; preds = %0
- %B = add i32 %i, %j ; <i32> [#uses=1]
- ret i32 %B
-}
-
-define i32 @hascommondominator(i32 %i, i32 %j) {
- br i1 true, label %BB1, label %BB2
-
-BB1: ; preds = %0
- %A = add i32 %i, %j ; <i32> [#uses=1]
- ret i32 %A
-
-BB2: ; preds = %0
- %B = add i32 %i, %j ; <i32> [#uses=1]
- ret i32 %B
-}
-
diff --git a/test/Transforms/GCSE/vectorops.ll b/test/Transforms/GCSE/vectorops.ll
deleted file mode 100644
index f52688e3ac..0000000000
--- a/test/Transforms/GCSE/vectorops.ll
+++ /dev/null
@@ -1,24 +0,0 @@
-; RUN: llvm-as < %s | opt -gcse -instcombine | \
-; RUN: llvm-dis | not grep sub
-
-define i32 @test_extractelement(<4 x i32> %V) {
- %R = extractelement <4 x i32> %V, i32 1 ; <i32> [#uses=1]
- %R2 = extractelement <4 x i32> %V, i32 1 ; <i32> [#uses=1]
- %V.upgrd.1 = sub i32 %R, %R2 ; <i32> [#uses=1]
- ret i32 %V.upgrd.1
-}
-
-define <4 x i32> @test_insertelement(<4 x i32> %V) {
- %R = insertelement <4 x i32> %V, i32 0, i32 0 ; <<4 x i32>> [#uses=1]
- %R2 = insertelement <4 x i32> %V, i32 0, i32 0 ; <<4 x i32>> [#uses=1]
- %x = sub <4 x i32> %R, %R2 ; <<4 x i32>> [#uses=1]
- ret <4 x i32> %x
-}
-
-define <4 x i32> @test_shufflevector(<4 x i32> %V) {
- %R = shufflevector <4 x i32> %V, <4 x i32> %V, <4 x i32> < i32 1, i32 undef, i32 7, i32 2 > ; <<4 x i32>> [#uses=1]
- %R2 = shufflevector <4 x i32> %V, <4 x i32> %V, <4 x i32> < i32 1, i32 undef, i32 7, i32 2 > ; <<4 x i32>> [#uses=1]
- %x = sub <4 x i32> %R, %R2 ; <<4 x i32>> [#uses=1]
- ret <4 x i32> %x
-}
-
diff --git a/test/Transforms/InstCombine/GEPIdxCanon.ll b/test/Transforms/InstCombine/GEPIdxCanon.ll
index 9f84c01a3a..f2e5e6745b 100644
--- a/test/Transforms/InstCombine/GEPIdxCanon.ll
+++ b/test/Transforms/InstCombine/GEPIdxCanon.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -instcombine -gcse -instcombine | \
+; RUN: llvm-as < %s | opt -instcombine -gvn -instcombine | \
; RUN: llvm-dis | not grep getelementptr
define i1 @test(i32* %A) {
diff --git a/test/Transforms/InstCombine/getelementptr_const.ll b/test/Transforms/InstCombine/getelementptr_const.ll
index 3de9ecec2d..823ff5efde 100644
--- a/test/Transforms/InstCombine/getelementptr_const.ll
+++ b/test/Transforms/InstCombine/getelementptr_const.ll
@@ -1,5 +1,5 @@
; Test folding of constantexpr geps into normal geps.
-; RUN: llvm-as < %s | opt -instcombine -gcse -instcombine | \
+; RUN: llvm-as < %s | opt -instcombine -gvn -instcombine | \
; RUN: llvm-dis | not grep getelementptr
@Array = external global [40 x i32] ; <[40 x i32]*> [#uses=2]
diff --git a/test/Transforms/LICM/2003-05-02-LoadHoist.ll b/test/Transforms/LICM/2003-05-02-LoadHoist.ll
index 35fb420408..7b58535972 100644
--- a/test/Transforms/LICM/2003-05-02-LoadHoist.ll
+++ b/test/Transforms/LICM/2003-05-02-LoadHoist.ll
@@ -3,7 +3,7 @@
; loaded from. Basically if the load gets hoisted, the subtract gets turned
; into a constant zero.
;
-; RUN: llvm-as < %s | opt -licm -load-vn -gcse -instcombine | llvm-dis | grep load
+; RUN: llvm-as < %s | opt -licm -gvn -instcombine | llvm-dis | grep load
@X = global i32 7 ; <i32*> [#uses=2]
diff --git a/test/Transforms/Reassociate/basictest3.ll b/test/Transforms/Reassociate/basictest3.ll
index 71a6cf656d..a88030db2f 100644
--- a/test/Transforms/Reassociate/basictest3.ll
+++ b/test/Transforms/Reassociate/basictest3.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -reassociate -gcse | llvm-dis | grep add | count 6
+; RUN: llvm-as < %s | opt -reassociate -gvn | llvm-dis | grep add | count 6
; Each of these functions should turn into two adds each.
@e = external global i32 ; <i32*> [#uses=3]
diff --git a/test/Transforms/Reassociate/basictest4.ll b/test/Transforms/Reassociate/basictest4.ll
index fbf86a9f58..608becd9c3 100644
--- a/test/Transforms/Reassociate/basictest4.ll
+++ b/test/Transforms/Reassociate/basictest4.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -reassociate -gcse -instcombine | llvm-dis | not grep add
+; RUN: llvm-as < %s | opt -reassociate -gvn -instcombine | llvm-dis | not grep add
@a = weak global i32 0 ; <i32*> [#uses=1]
@b = weak global i32 0 ; <i32*> [#uses=1]
diff --git a/test/Transforms/SimplifyCFG/2006-08-03-Crash.ll b/test/Transforms/SimplifyCFG/2006-08-03-Crash.ll
index 110a440e66..e410c35450 100644
--- a/test/Transforms/SimplifyCFG/2006-08-03-Crash.ll
+++ b/test/Transforms/SimplifyCFG/2006-08-03-Crash.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -load-vn -gcse -simplifycfg \
+; RUN: llvm-as < %s | opt -gvn -simplifycfg \
; RUN: -disable-output
; PR867
; END.