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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 2 07:46:07 PDT 2025


================
@@ -9149,6 +9145,8 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
       if (CM.blockNeedsPredicationForAnyReason(CurrentLinkI->getParent()))
         CondOp = RecipeBuilder.getBlockInMask(CurrentLink->getParent());
 
+      const RecurrenceDescriptor &RdxDesc = Legal->getReductionVars().lookup(
+          cast<PHINode>(PhiR->getUnderlyingInstr()));
----------------
fhahn wrote:

Done, thanks

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


More information about the llvm-commits mailing list