[llvm-commits] CVS: llvm/test/Regression/Transforms/DeadStoreElimination/alloca.llx
Chris Lattner
lattner at cs.uiuc.edu
Sun Jul 25 23:11:53 PDT 2004
Changes in directory llvm/test/Regression/Transforms/DeadStoreElimination:
alloca.llx added (r1.1)
---
Log message:
New testcase
---
Diffs of the changes: (+8 -0)
Index: llvm/test/Regression/Transforms/DeadStoreElimination/alloca.llx
diff -c /dev/null llvm/test/Regression/Transforms/DeadStoreElimination/alloca.llx:1.1
*** /dev/null Mon Jul 26 01:11:53 2004
--- llvm/test/Regression/Transforms/DeadStoreElimination/alloca.llx Mon Jul 26 01:11:42 2004
***************
*** 0 ****
--- 1,8 ----
+ ; RUN: llvm-as < %s | opt -dse | llvm-dis | not grep DEAD
+
+ void %test(int* %Q) {
+ %P = alloca int
+ %DEAD = load int* %Q
+ store int %DEAD, int* %P ;; Alloca goes out of scope, dead store.
+ ret void
+ }
More information about the llvm-commits
mailing list