[llvm] [SelectionDAG][x86] Ensure vector reduction optimization (PR #144231)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 18 00:16:42 PDT 2025
Suhajda =?utf-8?q?Tamás?= <sutajo at gmail.com>,
Suhajda =?utf-8?q?Tamás?= <sutajo at gmail.com>,
Suhajda =?utf-8?q?Tamás?= <sutajo at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/144231 at github.com>
================
@@ -1435,6 +1435,20 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
setOperationAction(ISD::BITREVERSE, VT, Custom);
}
+ // Vector min/max reductions
+ if (Subtarget.hasSSE41())
+ {
+ for (MVT VT : MVT::vector_valuetypes()) {
----------------
RKSimon wrote:
That sounds like the ExpandReductions pass isn't accounting for type legalisation properly?
https://github.com/llvm/llvm-project/pull/144231
More information about the llvm-commits
mailing list