[llvm] [SelectionDAG] Improve type legalisation for PARTIAL_REDUCE_MLA (PR #130935)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 30 02:15:09 PDT 2025


================
@@ -1668,6 +1668,12 @@ class TargetLoweringBase {
     return Action == Legal || Action == Custom;
   }
 
+  /// Return true if a PARTIAL_REDUCE_U/SMLA node with the specified types is
+  /// legal for this target.
+  bool isPartialReduceMLALegal(EVT AccVT, EVT InputVT) const {
+    return getPartialReduceMLAAction(AccVT, InputVT) == Legal;
+  }
+
----------------
MacDue wrote:

This is unused in the current patch. 
```suggestion
```

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


More information about the llvm-commits mailing list