[llvm-commits] CVS: llvm/test/Regression/Transforms/DeadStoreElimination/PartialStore.ll 2004-12-28-PartialStore.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Dec 28 20:35:44 PST 2004
Changes in directory llvm/test/Regression/Transforms/DeadStoreElimination:
PartialStore.ll added (r1.1)
2004-12-28-PartialStore.ll updated: 1.1 -> 1.2
---
Log message:
Add a comment, add a new testcase
---
Diffs of the changes: (+13 -0)
Index: llvm/test/Regression/Transforms/DeadStoreElimination/PartialStore.ll
diff -c /dev/null llvm/test/Regression/Transforms/DeadStoreElimination/PartialStore.ll:1.1
*** /dev/null Tue Dec 28 22:35:40 2004
--- llvm/test/Regression/Transforms/DeadStoreElimination/PartialStore.ll Tue Dec 28 22:35:30 2004
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: llvm-as < %s | opt -dse | llvm-dis | not grep 'store sbyte'
+ ; Ensure that the dead store is deleted in this case. It is wholely
+ ; overwritten by the second store.
+ int %test() {
+ %V = alloca int
+ %V2 = cast int* %V to sbyte*
+ store sbyte 0, sbyte* %V2
+ store int 1234567, int* %V
+ %X = load int* %V
+ ret int %X
+ }
Index: llvm/test/Regression/Transforms/DeadStoreElimination/2004-12-28-PartialStore.ll
diff -u llvm/test/Regression/Transforms/DeadStoreElimination/2004-12-28-PartialStore.ll:1.1 llvm/test/Regression/Transforms/DeadStoreElimination/2004-12-28-PartialStore.ll:1.2
--- llvm/test/Regression/Transforms/DeadStoreElimination/2004-12-28-PartialStore.ll:1.1 Tue Dec 28 22:27:26 2004
+++ llvm/test/Regression/Transforms/DeadStoreElimination/2004-12-28-PartialStore.ll Tue Dec 28 22:35:30 2004
@@ -1,5 +1,7 @@
; RUN: llvm-as < %s | opt -dse | llvm-dis | grep 'store int 1234567'
+; Do not delete stores that are only partially killed.
+
int %test() {
%V = alloca int
store int 1234567, int* %V
More information about the llvm-commits
mailing list