mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
7bcc0e7fff
commit
efd74a0159
@ -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…
Reference in New Issue
Block a user