[llvm] [LV] Change getSmallBestKnownTC to return an ElementCount (NFC) (PR #141793)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 3 12:47:23 PDT 2025
================
@@ -427,24 +427,24 @@ static bool hasIrregularType(Type *Ty, const DataLayout &DL) {
/// 2) Returns expected trip count according to profile data if any.
/// 3) Returns upper bound estimate if known, and if \p CanUseConstantMax.
/// 4) Returns std::nullopt if all of the above failed.
-static std::optional<unsigned>
+static std::optional<ElementCount>
getSmallBestKnownTC(PredicatedScalarEvolution &PSE, Loop *L,
bool CanUseConstantMax = true) {
----------------
artagnon wrote:
Is it sufficient to change getSmallBestKnownTC to return ElementCount, and not touch SCEV?
https://github.com/llvm/llvm-project/pull/141793
More information about the llvm-commits
mailing list