[llvm] [Analysis] Add getPredicatedExitCount to ScalarEvolution (PR #105649)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 22 07:17:28 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,
----------------
david-arm wrote:
Done. I've also posted a NFC patch (https://github.com/llvm/llvm-project/pull/105663) to clean up the existing functions too.
https://github.com/llvm/llvm-project/pull/105649
More information about the llvm-commits
mailing list