[llvm-commits] CVS: llvm/test/Regression/Transforms/DeadStoreElimination/2004-11-28-LiveStoreDeleted.ll
Chris Lattner
lattner at cs.uiuc.edu
Sun Nov 28 11:54:16 PST 2004
Changes in directory llvm/test/Regression/Transforms/DeadStoreElimination:
2004-11-28-LiveStoreDeleted.ll added (r1.1)
---
Log message:
New testcase. The store is not dead here.
---
Diffs of the changes: (+13 -0)
Index: llvm/test/Regression/Transforms/DeadStoreElimination/2004-11-28-LiveStoreDeleted.ll
diff -c /dev/null llvm/test/Regression/Transforms/DeadStoreElimination/2004-11-28-LiveStoreDeleted.ll:1.1
*** /dev/null Sun Nov 28 13:54:12 2004
--- llvm/test/Regression/Transforms/DeadStoreElimination/2004-11-28-LiveStoreDeleted.ll Sun Nov 28 13:54:02 2004
***************
*** 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
+ }
+
More information about the llvm-commits
mailing list