[llvm] [VPlan] Replace RdxDesc with RecurKind in VPReductionPHIRecipe (NFC). (PR #142322)
    Florian Hahn via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sun Jul  6 12:56:08 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 {
+    assert(Reductions.contains(PN) && "no recurrence descriptor for phi");
+    return Reductions.lookup(PN);
----------------
fhahn wrote:
Done in split off c5fff132d019557e9cb028859ee989ea97b50e5c, thanks
https://github.com/llvm/llvm-project/pull/142322
    
    
More information about the llvm-commits
mailing list