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
This commit is contained in:
Chris Lattner 2004-02-28 05:26:06 +00:00
parent 7bcc0e7fff
commit efd74a0159
9 changed files with 9 additions and 9 deletions

View File

@ -1,7 +1,7 @@
; This testcase is incorrectly getting completely eliminated. There should be ; This testcase is incorrectly getting completely eliminated. There should be
; SOME instruction named %c here, even if it's a bitwise and. ; 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) { ulong %test3(ulong %A) {
%c1 = cast ulong %A to ubyte %c1 = cast ulong %A to ubyte

View File

@ -1,6 +1,6 @@
; This test makes sure that add instructions are properly eliminated. ; 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 implementation

View 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 implementation

View File

@ -1,6 +1,6 @@
; Tests to make sure elimination of casts is working correctly ; 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] %inbuf = external global [32832 x ubyte]

View File

@ -1,6 +1,6 @@
; The %A getelementptr instruction should be eliminated here ; 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" %Global = constant [10 x sbyte] c"helloworld"

View File

@ -1,5 +1,5 @@
; test that malloc's with a constant argument are promoted to array allocations ; 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() { int* %test() {
%X = malloc int, uint 4 %X = malloc int, uint 4

View File

@ -1,7 +1,7 @@
; This test makes sure that these instructions are properly eliminated. ; 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 implementation

View File

@ -1,7 +1,7 @@
; This test makes sure that these instructions are properly eliminated. ; 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 implementation

View File

@ -1,7 +1,7 @@
; This test makes sure that these instructions are properly eliminated. ; 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 implementation