[llvm] [AArch64][SelectionDAG] Add type legalization for partial reduce wide adds (PR #141075)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Tue May 27 05:03:40 PDT 2025
================
@@ -12703,7 +12704,10 @@ SDValue DAGCombiner::foldPartialReduceAdd(SDNode *N) {
SDValue UnextOp1 = Op1.getOperand(0);
EVT UnextOp1VT = UnextOp1.getValueType();
- if (!TLI.isPartialReduceMLALegalOrCustom(N->getValueType(0), UnextOp1VT))
+ auto *Context = DAG.getContext();
+ if (!TLI.isPartialReduceMLALegalOrCustom(
----------------
sdesmalen-arm wrote:
My understanding is that this combine happens before type legalisation, so it needs to check if the partial reduce will be supported for the legal type.
https://github.com/llvm/llvm-project/pull/141075
More information about the llvm-commits
mailing list