The instruction combining pass removes dead instructions, there is no need
authorChris Lattner <sabre@nondot.org>
Sat, 28 Feb 2004 05:26:06 +0000 (05:26 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 28 Feb 2004 05:26:06 +0000 (05:26 +0000)
to run the die pass after it.

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

test/Transforms/InstCombine/2002-08-02-CastTest.ll
test/Transforms/InstCombine/add.ll
test/Transforms/InstCombine/call.ll
test/Transforms/InstCombine/cast.ll
test/Transforms/InstCombine/getelementptr.ll
test/Transforms/InstCombine/malloc.ll
test/Transforms/InstCombine/not.ll
test/Transforms/InstCombine/phi.ll
test/Transforms/InstCombine/sub.ll

index 4dce24202b4ef5f5688013745d5ac2851ed5fa50..239c96cfb4a57eadac59c08e2cf3caee633ec6b8 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: llvm-as < %s | opt -instcombine -die | llvm-dis | grep '%c'
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep '%c'
 ;
 ulong %test3(ulong %A) {
         %c1 = cast ulong %A to ubyte
index 70d3e320333bf94bba4f0bdb5156ecd9e86ec857..af985f2b3ba68573fbbc41aa9d8cc0e9ffdd1960 100644 (file)
@@ -1,6 +1,6 @@
 ; This test makes sure that add instructions are properly eliminated.
 
-; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | grep -v OK | not grep add
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep -v OK | not grep add
 
 implementation
 
index a1da2c66e503348bedb0b34ea97c67e6535c1156..51ae351629a33099be5db3510feb184d489525cc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | grep call | not grep cast
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep call | not grep cast
 
 implementation
 
index be9f6085a47e70a0b977fad0ad7f673db48f2b84..8b835c3372c6df7e58e81bb5b8f678b8aff4fb6e 100644 (file)
@@ -1,6 +1,6 @@
 ; Tests to make sure elimination of casts is working correctly
 
-; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | grep '%c' | not grep cast
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep '%c' | not grep cast
 
 %inbuf = external global [32832 x ubyte]
 
index 4c8bbd286b43b100c9a7c7e679d80a02fea0733d..1e991d0e369b04ee5a054bc217609a841b5bbbaf 100644 (file)
@@ -1,6 +1,6 @@
 ; The %A getelementptr instruction should be eliminated here
 
-; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | grep getelementptr | not grep '%A '
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep getelementptr | not grep '%A '
 
 %Global = constant [10 x sbyte] c"helloworld"
 
index 3231acf53d89d4c3ba7eb71c04a88d3ece7dd46c..ed13f415b3d43eed1ff9de5dcb4cfc0b8eae5f5e 100644 (file)
@@ -1,5 +1,5 @@
 ; test that malloc's with a constant argument are promoted to array allocations
-; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | grep getelementptr
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep getelementptr
 
 int* %test() {
        %X = malloc int, uint 4
index f87e4bea3bdc1f9ddd2ae5e6d83e8e997f186421..11718466da0221d50a7f654961af4ee857038343 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 
-; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | not grep xor
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep xor
 
 implementation
 
index 96e9e0ba39c0b2bf824dbaebe90db092a71a0d6b..653ae1f02fc9fa520b6051596a9f8fb1e49919e1 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 
-; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | not grep phi
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep phi
 
 implementation
 
index 4f2a1c9ce03545ba6712923f8200a37348ec7813..ad1ae0a548d8ece0af5fbe05d718d063973885b2 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 
-; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | grep sub | not grep -v 'sub int %Cok, %Bok'
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep sub | not grep -v 'sub int %Cok, %Bok'
 
 implementation