[PATCH] D23927: GVN-hoist: invalidate MD cache (PR29144)
Sebastian Pop via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 26 19:57:00 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL279907: GVN-hoist: invalidate MD cache (PR29144) (authored by spop).
Changed prior to commit:
https://reviews.llvm.org/D23927?vs=69385&id=69463#toc
Repository:
rL LLVM
https://reviews.llvm.org/D23927
Files:
llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp
Index: llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp
+++ llvm/trunk/lib/Transforms/Scalar/GVNHoist.cpp
@@ -846,6 +846,8 @@
Repl->intersectOptionalDataWith(I);
combineKnownMetadata(Repl, I);
I->replaceAllUsesWith(Repl);
+ // Also invalidate the Alias Analysis cache.
+ MD->removeInstruction(I);
I->eraseFromParent();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23927.69463.patch
Type: text/x-patch
Size: 509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160827/af9470d7/attachment.bin>
More information about the llvm-commits
mailing list