[llvm] [DSE] Remove malloc from EarliestEscapeInfo before removing. (PR #84157)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 6 07:10:06 PST 2024


================
@@ -1916,6 +1916,7 @@ struct DSEState {
     Updater.insertDef(NewAccessMD, /*RenameUses=*/true);
     Updater.removeMemoryAccess(Malloc);
     Malloc->replaceAllUsesWith(Calloc);
+    EI.removeInstruction(Malloc);
----------------
fhahn wrote:

yeah that's better, updated, thanks!

https://github.com/llvm/llvm-project/pull/84157


More information about the llvm-commits mailing list