summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2012-07-24 07:21:08 +0000
committerNick Lewycky <nicholas@mxc.ca>2012-07-24 07:21:08 +0000
commitfaa9c3b035f5285e91ddd88e73aad9c8fe3d6bf9 (patch)
tree43f37950229f41e9e9ccad4403eea2e0dd86938d /llvm/test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll
parent1c7207c88682cf49abf8947a952fab5497b24dbb (diff)
downloadbcm5719-llvm-faa9c3b035f5285e91ddd88e73aad9c8fe3d6bf9.tar.gz
bcm5719-llvm-faa9c3b035f5285e91ddd88e73aad9c8fe3d6bf9.zip
Teach globalopt to not nuke all stores to globals. Keep them around of they
might be deliberate "one time" leaks, so that leak checkers can find them. This is a reapply of r160602 with the fix that this time I'm committing the code I thought I was committing last time; the I->eraseFromParent() goes *after* the break out of the loop. llvm-svn: 160664
Diffstat (limited to 'llvm/test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll')
-rw-r--r--llvm/test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll b/llvm/test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll
index 54e8f909790..40862bd038e 100644
--- a/llvm/test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll
+++ b/llvm/test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.ll
@@ -17,7 +17,7 @@ define void @test() nounwind ssp {
%2 = sext i32 %1 to i64 ; <i64> [#uses=1]
%3 = mul i64 %2, ptrtoint (%struct.strchartype* getelementptr (%struct.strchartype* null, i64 1) to i64) ; <i64> [#uses=1]
%4 = tail call i8* @malloc(i64 %3) ; <i8*> [#uses=1]
-; CHECK: call i8* @malloc(i64
+; CHECK-NOT: call i8* @malloc(i64
%5 = bitcast i8* %4 to %struct.strchartype* ; <%struct.strchartype*> [#uses=1]
store %struct.strchartype* %5, %struct.strchartype** @chartypes, align 8
ret void
OpenPOWER on IntegriCloud