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

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 10 09:25:14 PDT 2023


efriedma added inline comments.


================
Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:602
     MadeChange = false;
-    DT.reset();
+    resetDT();
 
----------------
chill wrote:
> efriedma wrote:
> > InitialLI is pointless if you're going to immediately throw it away.
> It's used in the construction of `BranchProbabilityInfo` and `BlockGFrequenceInfo`.
I guess, but you don't need to store it in the class for that.

Is the BPI also broken by CFG modifications?


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

https://reviews.llvm.org/D150210



More information about the llvm-commits mailing list