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

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 3 08:46:03 PDT 2025


================
@@ -9177,7 +9175,8 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
     if (!PhiR)
       continue;
 
-    const RecurrenceDescriptor &RdxDesc = PhiR->getRecurrenceDescriptor();
+    const RecurrenceDescriptor &RdxDesc = Legal->getReductionVars().lookup(
+        cast<PHINode>(PhiR->getUnderlyingInstr()));
----------------
Mel-Chen wrote:

Better to use getRecurrenceDescriptor you created.

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


More information about the llvm-commits mailing list