[llvm] [LCSSA] Cache the loop exit blocks across recursive analysis (NFC) (PR #101087)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 30 14:11:33 PDT 2024


================
@@ -374,6 +391,8 @@ bool llvm::formLCSSA(Loop &L, const DominatorTree &DT, const LoopInfo *LI,
 
   SmallVector<BasicBlock *, 8> ExitBlocks;
   L.getExitBlocks(ExitBlocks);
----------------
teresajohnson wrote:

Did a little bit more cleanup here to make this more closely match the other getExitBlocks() callsite and save and pass down the ExitBlocks as a SmallVectorImpl

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


More information about the llvm-commits mailing list