[llvm] IVDesc: unify RecurKinds IAnyOf and FAnyOf (PR #118393)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 3 10:40:24 PST 2024


================
@@ -415,12 +415,9 @@ bool RecurrenceDescriptor::AddReductionVar(
     if (IsAPhi && Cur != Phi && !areAllUsesIn(Cur, VisitedInsts))
       return false;
 
-    if ((isIntMinMaxRecurrenceKind(Kind) || Kind == RecurKind::IAnyOf) &&
-        (isa<ICmpInst>(Cur) || isa<SelectInst>(Cur)))
-      ++NumCmpSelectPatternInst;
-    if ((isFPMinMaxRecurrenceKind(Kind) || Kind == RecurKind::FAnyOf) &&
----------------
artagnon wrote:

Oops, thanks for catching this serious error! Checks have now been tightened.

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


More information about the llvm-commits mailing list