[llvm] [LoopSafetyInfo] Store Loop and automatically compute (PR #221238)
Antonio Frighetto via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 7 01:30:52 PDT 2026
================
@@ -85,29 +82,19 @@ class LoopSafetyInfo {
virtual bool anyBlockMayThrow() const = 0;
/// Return true if we must reach the block \p BB under assumption that the
- /// loop \p CurLoop is entered.
- LLVM_ABI bool allLoopPathsLeadToBlock(const Loop *CurLoop,
- const BasicBlock *BB,
+ /// loop is entered.
+ LLVM_ABI bool allLoopPathsLeadToBlock(const BasicBlock *BB,
const DominatorTree *DT) const;
- LLVM_ABI bool allLoopPathsLeadToBlockImpl(const Loop *CurLoop,
- const BasicBlock *BB,
+ LLVM_ABI bool allLoopPathsLeadToBlockImpl(const BasicBlock *BB,
----------------
antoniofrighetto wrote:
Not sure why this implementation method is public and exported, would probably take the opportunity to change its visibility too.
https://github.com/llvm/llvm-project/pull/221238
More information about the llvm-commits
mailing list