[llvm] [DSE] Remove malloc from EarliestEscapeInfo before removing. (PR #84157)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 08:22:21 PST 2024
================
@@ -1908,15 +1908,9 @@ struct DSEState {
Malloc->getArgOperand(0), IRB, TLI);
if (!Calloc)
return false;
- MemorySSAUpdater Updater(&MSSA);
- auto *NewAccess =
- Updater.createMemoryAccessAfter(cast<Instruction>(Calloc), nullptr,
- MallocDef);
- auto *NewAccessMD = cast<MemoryDef>(NewAccess);
- Updater.insertDef(NewAccessMD, /*RenameUses=*/true);
----------------
fhahn wrote:
Ah yes added back. Strangely this doesn't seem to be caught be the verifier in any of the tests we have.
https://github.com/llvm/llvm-project/pull/84157
More information about the llvm-commits
mailing list