[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
================
@@ -301,6 +301,11 @@ class LoopVectorizationLegality {
/// Returns the reduction variables found in the loop.
const ReductionList &getReductionVars() const { return Reductions; }
+ RecurrenceDescriptor getRecurrenceDescriptor(PHINode *PN) const {
----------------
ayalz wrote:
```suggestion
/// Returns the recurrence descriptor associated with a given phi node \p PN,
/// expecting one to exist.
RecurrenceDescriptor getRecurrenceDescriptor(PHINode *PN) const {
```
https://github.com/llvm/llvm-project/pull/142322
More information about the llvm-commits
mailing list