[PATCH] D150210: [CodeGenPrepare] Fix for using outdated/corrupt LoopInfo

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 9 11:08:07 PDT 2023


efriedma added a comment.

It might be worth trying to teach CodeGenPrepare to update the domtree instead of destroying it, at some point... but that shouldn't block this patch.



================
Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:602
     MadeChange = false;
-    DT.reset();
+    resetDT();
 
----------------
InitialLI is pointless if you're going to immediately throw it away.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150210/new/

https://reviews.llvm.org/D150210



More information about the llvm-commits mailing list