From efd74a0159800d8874aec3b4e3c7353a95ab854e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 28 Feb 2004 05:26:06 +0000 Subject: [PATCH] The instruction combining pass removes dead instructions, there is no need 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 | 2 +- test/Transforms/InstCombine/add.ll | 2 +- test/Transforms/InstCombine/call.ll | 2 +- test/Transforms/InstCombine/cast.ll | 2 +- test/Transforms/InstCombine/getelementptr.ll | 2 +- test/Transforms/InstCombine/malloc.ll | 2 +- test/Transforms/InstCombine/not.ll | 2 +- test/Transforms/InstCombine/phi.ll | 2 +- test/Transforms/InstCombine/sub.ll | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/Transforms/InstCombine/2002-08-02-CastTest.ll b/test/Transforms/InstCombine/2002-08-02-CastTest.ll index 4dce24202b4..239c96cfb4a 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: 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 diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll index 70d3e320333..af985f2b3ba 100644 --- a/test/Transforms/InstCombine/add.ll +++ b/test/Transforms/InstCombine/add.ll @@ -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 diff --git a/test/Transforms/InstCombine/call.ll b/test/Transforms/InstCombine/call.ll index a1da2c66e50..51ae351629a 100644 --- a/test/Transforms/InstCombine/call.ll +++ b/test/Transforms/InstCombine/call.ll @@ -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 diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll index be9f6085a47..8b835c3372c 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: 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] diff --git a/test/Transforms/InstCombine/getelementptr.ll b/test/Transforms/InstCombine/getelementptr.ll index 4c8bbd286b4..1e991d0e369 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: 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" diff --git a/test/Transforms/InstCombine/malloc.ll b/test/Transforms/InstCombine/malloc.ll index 3231acf53d8..ed13f415b3d 100644 --- a/test/Transforms/InstCombine/malloc.ll +++ b/test/Transforms/InstCombine/malloc.ll @@ -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 diff --git a/test/Transforms/InstCombine/not.ll b/test/Transforms/InstCombine/not.ll index f87e4bea3bd..11718466da0 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: llvm-as < %s | opt -instcombine -die | llvm-dis | not grep xor +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep xor implementation diff --git a/test/Transforms/InstCombine/phi.ll b/test/Transforms/InstCombine/phi.ll index 96e9e0ba39c..653ae1f02fc 100644 --- a/test/Transforms/InstCombine/phi.ll +++ b/test/Transforms/InstCombine/phi.ll @@ -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 diff --git a/test/Transforms/InstCombine/sub.ll b/test/Transforms/InstCombine/sub.ll index 4f2a1c9ce03..ad1ae0a548d 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: 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 -- 2.11.0