[llvm] [SelectionDAG] Add PARTIAL_REDUCE_U/SMLA ISD Nodes (PR #125207)
    Paul Walker via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Feb  6 08:46:35 PST 2025
    
    
  
================
@@ -1571,6 +1581,11 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
       setOperationAction(ISD::MSTORE, VT, Custom);
     }
 
+    for (MVT VT : MVT::scalable_vector_valuetypes()) {
+      setOperationAction(ISD::PARTIAL_REDUCE_UMLA, VT, Expand);
+      setOperationAction(ISD::PARTIAL_REDUCE_SMLA, VT, Expand);
+    }
----------------
paulwalker-arm wrote:
Given this new node is effectively opt-in I suggest adding an entry to `TargetLoweringBase::initActions()` so the operation is marked as expand for all value types.  Then in your follow-on patches you can selectively make some of them legal.
https://github.com/llvm/llvm-project/pull/125207
    
    
More information about the llvm-commits
mailing list