[llvm] LV: reuse getSmallBestKnownTC in a TC estimation (NFC) (PR #105834)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 29 12:30:24 PDT 2024
================
@@ -408,10 +408,11 @@ static bool hasIrregularType(Type *Ty, const DataLayout &DL) {
/// the following procedure:
/// 1) Returns exact trip count if it is known.
/// 2) Returns expected trip count according to profile data if any.
-/// 3) Returns upper bound estimate if it is known.
+/// 3) Returns upper bound estimate if known, and if CanUseConstantMax.
----------------
fhahn wrote:
```suggestion
/// 3) Returns upper bound estimate if known, and if \p CanUseConstantMax.
```
https://github.com/llvm/llvm-project/pull/105834
More information about the llvm-commits
mailing list