The instruction combining pass removes dead instructions, there is no need

to run the die pass after it.

llvm-svn: 11942
This commit is contained in:
Chris Lattner 2004-02-28 05:26:06 +00:00
parent 51ea127bf3
commit b66f42427a
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
; 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

View 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

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

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

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

View 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

View 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

View 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

View 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