[llvm] [Analysis] Add getPredicatedExitCount to ScalarEvolution (PR #105649)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 22 05:45:44 PDT 2024
================
@@ -871,6 +871,13 @@ class ScalarEvolution {
const SCEV *getExitCount(const Loop *L, const BasicBlock *ExitingBlock,
ExitCountKind Kind = Exact);
+ /// Same as above except this uses the predicated backedge taken info and
+ /// may require predicates.
+ const SCEV *
+ getPredicatedExitCount(const Loop *L, const BasicBlock *ExitingBlock,
+ SmallVector<const SCEVPredicate *, 4> *Predicates,
----------------
nikic wrote:
```suggestion
SmallVectorImpl<const SCEVPredicate *> *Predicates,
```
https://github.com/llvm/llvm-project/pull/105649
More information about the llvm-commits
mailing list