[PATCH] D141870: [DAG] Fold fadd(vecreduce(a), vecreduce(b)) into vecreduce(fadd(a,b))
    Sergei Barannikov via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jan 16 13:18:27 PST 2023
    
    
  
barannikov88 added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:15342
+        N0->hasOneUse() && N1->hasOneUse() &&
+        TLI.isOperationLegalOrCustom(ISD::FADD,
+                                     N0.getOperand(0).getValueType()))
----------------
barannikov88 wrote:
> 
Never mind, I misunderstood the transformation.
Please copy a comment showing the transformation from the description to code.
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141870/new/
https://reviews.llvm.org/D141870
    
    
More information about the llvm-commits
mailing list