llvm-6502/test/Transforms/DeadStoreElimination/2004-11-28-LiveStoreDeleted.ll
Owen Anderson f6a05f949f Rename FastDSE to just DSE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40668 91177308-0d34-0410-b5e6-96231b3b80d8
2007-08-01 06:36:51 +00:00

15 lines
432 B
LLVM

; RUN: llvm-upgrade < %s | llvm-as | opt -dse -scalarrepl -instcombine | \
; RUN: llvm-dis | not grep {ret int undef}
int %test(double %__x) {
%__u = alloca { [3 x int] }
%tmp.1 = cast { [3 x int] }* %__u to double*
store double %__x, double* %tmp.1
%tmp.4 = getelementptr { [3 x int] }* %__u, int 0, uint 0, int 1
%tmp.5 = load int* %tmp.4
%tmp.6 = setlt int %tmp.5, 0
%tmp.7 = cast bool %tmp.6 to int
ret int %tmp.7
}