From 4a6e4b30b44048cdc7277b3d0264e71e47b5611c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 2 Aug 2002 19:27:58 +0000 Subject: [PATCH] These tests should not run -dce pass to cleanup instcombine. 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 --- test/Transforms/InstCombine/2002-08-02-CastTest.ll | 2 +- test/Transforms/InstCombine/add.ll | 2 +- test/Transforms/InstCombine/and.ll | 2 +- test/Transforms/InstCombine/cast-set.ll | 2 +- test/Transforms/InstCombine/cast.ll | 2 +- test/Transforms/InstCombine/div.ll | 2 +- test/Transforms/InstCombine/getelementptr.ll | 2 +- test/Transforms/InstCombine/mul.ll | 2 +- test/Transforms/InstCombine/not.ll | 2 +- test/Transforms/InstCombine/or.ll | 2 +- test/Transforms/InstCombine/rem.ll | 2 +- test/Transforms/InstCombine/set.ll | 2 +- test/Transforms/InstCombine/shift.ll | 2 +- test/Transforms/InstCombine/sub.ll | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/test/Transforms/InstCombine/2002-08-02-CastTest.ll b/test/Transforms/InstCombine/2002-08-02-CastTest.ll index 7599d7669ea..7ce791cf0e5 100644 --- a/test/Transforms/InstCombine/2002-08-02-CastTest.ll +++ b/test/Transforms/InstCombine/2002-08-02-CastTest.ll @@ -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 ; [#uses=0] %c2 = cast ulong %A to ulong ; [#uses=0] diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll index f7461d21296..8247d055055 100644 --- a/test/Transforms/InstCombine/add.ll +++ b/test/Transforms/InstCombine/add.ll @@ -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 diff --git a/test/Transforms/InstCombine/and.ll b/test/Transforms/InstCombine/and.ll index 9f7f49a60d9..356fe8491b0 100644 --- a/test/Transforms/InstCombine/and.ll +++ b/test/Transforms/InstCombine/and.ll @@ -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 diff --git a/test/Transforms/InstCombine/cast-set.ll b/test/Transforms/InstCombine/cast-set.ll index 8429223ef86..c890a07be42 100644 --- a/test/Transforms/InstCombine/cast-set.ll +++ b/test/Transforms/InstCombine/cast-set.ll @@ -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 diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll index 82b5c213a0e..00426695b02 100644 --- a/test/Transforms/InstCombine/cast.ll +++ b/test/Transforms/InstCombine/cast.ll @@ -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 diff --git a/test/Transforms/InstCombine/div.ll b/test/Transforms/InstCombine/div.ll index b189b7b4882..4f81b2f3f7f 100644 --- a/test/Transforms/InstCombine/div.ll +++ b/test/Transforms/InstCombine/div.ll @@ -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 diff --git a/test/Transforms/InstCombine/getelementptr.ll b/test/Transforms/InstCombine/getelementptr.ll index 16b947b382b..15795093723 100644 --- a/test/Transforms/InstCombine/getelementptr.ll +++ b/test/Transforms/InstCombine/getelementptr.ll @@ -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 diff --git a/test/Transforms/InstCombine/mul.ll b/test/Transforms/InstCombine/mul.ll index 077184cac2b..793040e8779 100644 --- a/test/Transforms/InstCombine/mul.ll +++ b/test/Transforms/InstCombine/mul.ll @@ -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 diff --git a/test/Transforms/InstCombine/not.ll b/test/Transforms/InstCombine/not.ll index 658afff2bae..6b253efab6d 100644 --- a/test/Transforms/InstCombine/not.ll +++ b/test/Transforms/InstCombine/not.ll @@ -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 diff --git a/test/Transforms/InstCombine/or.ll b/test/Transforms/InstCombine/or.ll index 34b9cc215b7..1f85ea2c49c 100644 --- a/test/Transforms/InstCombine/or.ll +++ b/test/Transforms/InstCombine/or.ll @@ -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 diff --git a/test/Transforms/InstCombine/rem.ll b/test/Transforms/InstCombine/rem.ll index 7f62bd2c596..554c059b1f7 100644 --- a/test/Transforms/InstCombine/rem.ll +++ b/test/Transforms/InstCombine/rem.ll @@ -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 diff --git a/test/Transforms/InstCombine/set.ll b/test/Transforms/InstCombine/set.ll index 3fd94c31a41..03c7e790db4 100644 --- a/test/Transforms/InstCombine/set.ll +++ b/test/Transforms/InstCombine/set.ll @@ -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 diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll index 20bf9116e2d..dde01f56586 100644 --- a/test/Transforms/InstCombine/shift.ll +++ b/test/Transforms/InstCombine/shift.ll @@ -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 diff --git a/test/Transforms/InstCombine/sub.ll b/test/Transforms/InstCombine/sub.ll index c2a6124536d..cf9011573d0 100644 --- a/test/Transforms/InstCombine/sub.ll +++ b/test/Transforms/InstCombine/sub.ll @@ -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