mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
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:
parent
7872171767
commit
4cb08f39e9
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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]
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user