[llvm] [JumpThreading] Invalidate LVI after `combineMetadataForCSE`. (PR #65219)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 3 03:17:49 PDT 2023
================
@@ -1269,6 +1269,7 @@ bool JumpThreadingPass::simplifyPartiallyRedundantLoad(LoadInst *LoadI) {
if (IsLoadCSE) {
LoadInst *NLoadI = cast<LoadInst>(AvailableVal);
combineMetadataForCSE(NLoadI, LoadI, false);
+ LVI->eraseBlock(NLoadI->getParent());
----------------
DianQK wrote:
I exposed the API. I'm learning how to get ValueHandle to handle this automatically. This may take some time.
https://github.com/llvm/llvm-project/pull/65219
More information about the llvm-commits
mailing list