From: Chris Lattner Date: Sun, 28 Nov 2004 19:54:02 +0000 (+0000) Subject: New testcase. The store is not dead here. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f4a0e5093cffb715b1660610192572d58ef389d5;p=oota-llvm.git New testcase. The store is not dead here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18307 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/DeadStoreElimination/2004-11-28-LiveStoreDeleted.ll b/test/Transforms/DeadStoreElimination/2004-11-28-LiveStoreDeleted.ll new file mode 100644 index 00000000000..31adce14287 --- /dev/null +++ b/test/Transforms/DeadStoreElimination/2004-11-28-LiveStoreDeleted.ll @@ -0,0 +1,13 @@ +; RUN: llvm-as < %s | opt -dse -scalarrepl -instcombine | 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 +} +