[llvm] [SelectionDAG] Improve type legalisation for PARTIAL_REDUCE_MLA (PR #130935)
Nicholas Guy via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 30 06:58:02 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;
+ }
+
----------------
NickGuy-Arm wrote:
Good catch, removed.
https://github.com/llvm/llvm-project/pull/130935
More information about the llvm-commits
mailing list