These tests should not run -dce pass to cleanup instcombine.
authorChris Lattner <sabre@nondot.org>
Fri, 2 Aug 2002 19:27:58 +0000 (19:27 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 2 Aug 2002 19:27:58 +0000 (19:27 +0000)
If instcombine is making dead instructions, ALL that should be used is -die

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3221 91177308-0d34-0410-b5e6-96231b3b80d8

14 files changed:
test/Transforms/InstCombine/2002-08-02-CastTest.ll
test/Transforms/InstCombine/add.ll
test/Transforms/InstCombine/and.ll
test/Transforms/InstCombine/cast-set.ll
test/Transforms/InstCombine/cast.ll
test/Transforms/InstCombine/div.ll
test/Transforms/InstCombine/getelementptr.ll
test/Transforms/InstCombine/mul.ll
test/Transforms/InstCombine/not.ll
test/Transforms/InstCombine/or.ll
test/Transforms/InstCombine/rem.ll
test/Transforms/InstCombine/set.ll
test/Transforms/InstCombine/shift.ll
test/Transforms/InstCombine/sub.ll

index 7599d7669ea0011ca63a3ce1e0a4579c088d0769..7ce791cf0e5feadb2ebcfdf88981fa801edad05b 100644 (file)
@@ -1,7 +1,7 @@
 ; This testcase is incorrectly getting completely eliminated.  There should be
 ; SOME instruction named %c here, even if it's a bitwise and.
 ;
-; RUN: as < %s | opt -instcombine -dce | grep '%c'
+; RUN: as < %s | opt -instcombine | grep '%c'
 ulong %test3(ulong %A) {
         %c1 = cast ulong %A to ubyte            ; <ubyte> [#uses=0]
         %c2 = cast ulong %A to ulong            ; <ulong> [#uses=0]
index f7461d212961fa28139abdc803149195eb624334..8247d055055b1ac2eba5e9c4d7571a2467bc031e 100644 (file)
@@ -3,7 +3,7 @@
 ; This also tests that a subtract with a constant is properly converted
 ; to a add w/negative constant
 
-; RUN: if as < %s | opt -instcombine -dce | dis | grep add
+; RUN: if as < %s | opt -instcombine -die | dis | grep add
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
index 9f7f49a60d999ec72d54093e62ffcdd39627b40d..356fe8491b010e23d53adfb184bbf0825e957090 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 
-; RUN: if as < %s | opt -instcombine -dce | dis | grep and
+; RUN: if as < %s | opt -instcombine | dis | grep and
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
index 8429223ef86edd717b2569c8f173140f3bb297e3..c890a07be422dc596834ee3d4e76ab9d0fb8d274 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: if as < %s | opt -instcombine -dce | dis | grep cast
+; RUN: if as < %s | opt -instcombine | dis | grep cast
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
index 82b5c213a0e90edbeab1beaa809fa6edcbe9743c..00426695b022f6902b579ca56fb779f30a6a5665 100644 (file)
@@ -1,6 +1,6 @@
 ; Tests to make sure elimination of casts is working correctly
 
-; RUN: if as < %s | opt -instcombine -dce | grep '%c' | grep cast
+; RUN: if as < %s | opt -instcombine | grep '%c' | grep cast
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
index b189b7b48822bad237918cc03389b784fc0f43e1..4f81b2f3f7f489a68fe60794a22e9896ee87dabc 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that div instructions are properly eliminated.
 ;
 
-; RUN: if as < %s | opt -instcombine -dce | dis | grep div
+; RUN: if as < %s | opt -instcombine | dis | grep div
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
index 16b947b382b383f8ec8583c3b00e0e3965f14d89..15795093723e584242fa1a9fcee78f6f78de28fe 100644 (file)
@@ -1,6 +1,6 @@
 ; The %A getelementptr instruction should be eliminated here
 
-; RUN: if as < %s | opt -instcombine -dce | dis | grep getelementptr | grep '%A'
+; RUN: if as < %s | opt -instcombine -die | dis | grep getelementptr | grep '%A'
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
index 077184cac2bbccb56dc75c8432af144e850721b3..793040e87792670746f395244ad7f5848cf588b3 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that mul instructions are properly eliminated.
 ;
 
-; RUN: if as < %s | opt -instcombine -dce | dis | grep mul
+; RUN: if as < %s | opt -instcombine | dis | grep mul
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
index 658afff2bae0cdc9cb01a13ecb756fac789bcfd5..6b253efab6d14d60881c1f8e85799177a6981a66 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 
-; RUN: if as < %s | opt -instcombine -dce | dis | grep not
+; RUN: if as < %s | opt -instcombine -die | dis | grep not
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
index 34b9cc215b7e93ce8d091253c6444b1f1fca2ed8..1f85ea2c49cd7fe8cd5bcd9d3e4a7d25c0f4ff06 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 
-; RUN: if as < %s | opt -instcombine -dce | dis | grep or
+; RUN: if as < %s | opt -instcombine | dis | grep or
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
index 7f62bd2c5964cdd2606dad6fc4c07f29b82fe74f..554c059b1f7c59703181be9a0886f8e568147da7 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 
-; RUN: if as < %s | opt -instcombine -dce | dis | grep rem
+; RUN: if as < %s | opt -instcombine | dis | grep rem
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
index 3fd94c31a41296a193ea486cae8efb514c768bf7..03c7e790db40a22a6194a24c9ad8258729d7b188 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 
-; RUN: if as < %s | opt -instcombine -dce | dis | grep set
+; RUN: if as < %s | opt -instcombine | dis | grep set
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
index 20bf9116e2d5af1a738bd760ac1af229961efc89..dde01f56586328a9be5dbd846a87edbcab82d7a6 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 
-; RUN: if as < %s | opt -instcombine -dce | dis | grep sh
+; RUN: if as < %s | opt -instcombine | dis | grep sh
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi
index c2a6124536d740273f46728541440f06a31d1766..cf9011573d0f2e868ef425cec2a5122fe3d8d22d 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 
-; RUN: if as < %s | opt -instcombine -dce | dis | grep sub | grep -v 'sub int %Cok, %Bok'
+; RUN: if as < %s | opt -instcombine -die | dis | grep sub | grep -v 'sub int %Cok, %Bok'
 ; RUN: then exit 1
 ; RUN: else exit 0
 ; RUN: fi