[llvm] [LAA] Be more careful when evaluating AddRecs at symbolic max BTC. (PR #128061)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 20 13:31:43 PST 2025


================
@@ -319,11 +319,14 @@ bool llvm::isDereferenceableAndAlignedInLoop(
   const SCEV *MaxBECount =
       Predicates ? SE.getPredicatedConstantMaxBackedgeTakenCount(L, *Predicates)
                  : SE.getConstantMaxBackedgeTakenCount(L);
+  const SCEV *SymbolicMaxBECount =
+      Predicates ? SE.getPredicatedConstantMaxBackedgeTakenCount(L, *Predicates)
----------------
artagnon wrote:

s/Constant/Symbolic/? Perhaps pass ExitKind to getPredicatedBackedgeTakenCount?

https://github.com/llvm/llvm-project/pull/128061


More information about the llvm-commits mailing list