[llvm] [GVN] Improve processBlock for instruction erasure (PR #131753)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 11 06:00:42 PDT 2025
================
@@ -1995,7 +1995,7 @@ bool GVNPass::processNonLocalLoad(LoadInst *Load) {
I->setDebugLoc(Load->getDebugLoc());
if (V->getType()->isPtrOrPtrVectorTy())
MD->invalidateCachedPointerInfo(V);
- markInstructionForDeletion(Load);
+ doInstructionDeletion(Load);
----------------
nikic wrote:
Use after free in reportLoadElim below?
https://github.com/llvm/llvm-project/pull/131753
More information about the llvm-commits
mailing list