mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 14:47:00 +00:00
GVN-hoist: invalidate MD cache (PR29144)
Without invalidating the entries in the MD cache we would try to access instructions that were removed in previous iterations of hoisting. Differential Revision: https://reviews.llvm.org/D23927 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279907 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
529dc06de0
commit
fab5bb8a6c
@ -846,6 +846,8 @@ private:
|
||||
Repl->intersectOptionalDataWith(I);
|
||||
combineKnownMetadata(Repl, I);
|
||||
I->replaceAllUsesWith(Repl);
|
||||
// Also invalidate the Alias Analysis cache.
|
||||
MD->removeInstruction(I);
|
||||
I->eraseFromParent();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user