[llvm] [VPlan] Replace RdxDesc with RecurKind in VPReductionPHIRecipe (NFC). (PR #142322)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 6 09:34:32 PDT 2025


================
@@ -7277,8 +7276,7 @@ static void fixReductionScalarResumeWhenVectorizingEpilog(
     MainResumeValue = VPI->getOperand(0)->getUnderlyingValue();
   } else
     MainResumeValue = EpiRedHeaderPhi->getStartValue()->getUnderlyingValue();
-  if (RecurrenceDescriptor::isAnyOfRecurrenceKind(
-          RdxDesc.getRecurrenceKind())) {
+  if (RecurrenceDescriptor::isAnyOfRecurrenceKind(Kind)) {
----------------
ayalz wrote:

Independent: can shorten to `isAnyOf()`, `isFindIV()`, etc., given that the parameter is a `Recur[rence]Kind`.

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


More information about the llvm-commits mailing list