forked from OSchip/llvm-project
Move these tests to use FastDSE instead of old DSE.
llvm-svn: 40444
This commit is contained in:
parent
b6a8ae20c7
commit
59a6840d47
|
@ -1,4 +1,4 @@
|
|||
; RUN: llvm-upgrade < %s | llvm-as | opt -dse -scalarrepl -instcombine | \
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -fdse -scalarrepl -instcombine | \
|
||||
; RUN: llvm-dis | not grep {ret int undef}
|
||||
|
||||
int %test(double %__x) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | \
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -fdse | llvm-dis | \
|
||||
; RUN: grep {store i32 1234567}
|
||||
|
||||
; Do not delete stores that are only partially killed.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | grep store
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -fdse | llvm-dis | grep store
|
||||
|
||||
double %foo(sbyte* %X) {
|
||||
%X_addr = alloca sbyte*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: llvm-upgrade < %s | llvm-as | opt -globalsmodref-aa -dse -disable-output
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -globalsmodref-aa -fdse -disable-output
|
||||
target endian = big
|
||||
target pointersize = 32
|
||||
target triple = "powerpc-apple-darwin8"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | \
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -fdse | llvm-dis | \
|
||||
; RUN: not grep {store sbyte}
|
||||
; Ensure that the dead store is deleted in this case. It is wholely
|
||||
; overwritten by the second store.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | not grep DEAD
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -fdse | llvm-dis | not grep DEAD
|
||||
|
||||
void %test(int* %Q) {
|
||||
%P = alloca int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | not grep DEAD
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -fdse | llvm-dis | not grep DEAD
|
||||
|
||||
declare void %ext()
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | not grep DEAD
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -fdse | llvm-dis | not grep DEAD
|
||||
|
||||
void %test(int* %Q, int* %P) {
|
||||
%DEAD = load int* %Q
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | not grep DEAD
|
||||
; RUN: llvm-upgrade < %s | llvm-as | opt -fdse | llvm-dis | not grep DEAD
|
||||
|
||||
void %test(int* %Q, int* %P) {
|
||||
%DEAD = load int* %Q
|
||||
|
|
Loading…
Reference in New Issue