[llvm] [LV] Add support for cmp reductions with decreasing IVs. (PR #140451)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Tue May 27 07:51:46 PDT 2025
================
@@ -259,17 +267,33 @@ class RecurrenceDescriptor {
return Kind == RecurKind::FindLastIV;
}
+ /// Returns true if the recurrence kind is of the form
+ /// select(cmp(),x,y) where one of (x,y) is an increasing or decreasing loop
+ /// induction.
+ static bool isFindIVRecurrenceKind(RecurKind Kind) {
----------------
artagnon wrote:
Factor out isFindFirstIVRecurrenceKind?
https://github.com/llvm/llvm-project/pull/140451
More information about the llvm-commits
mailing list