================
@@ -712,6 +726,17 @@ RecurrenceDescriptor::isFindIVPattern(RecurKind Kind, Loop *TheLoop,
m_Value(NonRdxPhi)))))
return InstDesc(false, I);
+ if (isFindLastRecurrenceKind(Kind)) {
----------------
huntergr-arm wrote:
done.
https://github.com/llvm/llvm-project/pull/158088