aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/DeadStoreElimination
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-10-24 04:35:36 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-10-24 04:35:36 +0000
commit4a3935c27e5315081844a5b7ae1f7097efc234b0 (patch)
treebd93a740307c16b7db5f271285a4db383425a2b0 /test/Transforms/DeadStoreElimination
parent38af3d5a8dbcada6f264d3a268f525a827adaca2 (diff)
downloadexternal_llvm-4a3935c27e5315081844a5b7ae1f7097efc234b0.zip
external_llvm-4a3935c27e5315081844a5b7ae1f7097efc234b0.tar.gz
external_llvm-4a3935c27e5315081844a5b7ae1f7097efc234b0.tar.bz2
A dead malloc, a free(NULL) and a free(undef) are all trivially dead
instructions. This doesn't introduce any optimizations we weren't doing before (except potentially due to pass ordering issues), now passes will eliminate them sooner as part of their own cleanups. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/DeadStoreElimination')
-rw-r--r--test/Transforms/DeadStoreElimination/simple.ll3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/Transforms/DeadStoreElimination/simple.ll b/test/Transforms/DeadStoreElimination/simple.ll
index 1703ee9..81eb5a8 100644
--- a/test/Transforms/DeadStoreElimination/simple.ll
+++ b/test/Transforms/DeadStoreElimination/simple.ll
@@ -257,5 +257,4 @@ define void @test20() {
ret void
}
; CHECK: @test20
-; CHECK-NOT: store
-; CHECK: ret void
+; CHECK-NEXT: ret void