[llvm] [LV] Skip sentinel value for FindLastIV reductions when start value is provably less than IV start. (PR #141788)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Thu May 29 01:18:38 PDT 2025
================
@@ -700,18 +707,18 @@ RecurrenceDescriptor::isFindLastIVPattern(Loop *TheLoop, PHINode *OrigPhi,
m_Value(NonRdxPhi)))))
return InstDesc(false, I);
- auto IsIncreasingLoopInduction = [&](Value *V) {
+ auto IsIncreasingLoopInduction = [&](Value *V) -> std::pair<bool, Value *> {
----------------
artagnon wrote:
std::optional<Value *>?
https://github.com/llvm/llvm-project/pull/141788
More information about the llvm-commits
mailing list