[llvm] [X86] optimize ssse3 horizontal saturating add/sub (PR #169591)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 26 05:14:03 PST 2025
================
@@ -54084,6 +54090,27 @@ static SDValue combineToHorizontalAddSub(SDNode *N, SelectionDAG &DAG,
}
}
break;
+ case ISD::SADDSAT:
+ case ISD::SSUBSAT:
+ if (Subtarget.hasSSSE3() && VT == MVT::v8i16) {
----------------
RKSimon wrote:
can you just add these to the existing ISD::ADD/SUB case to reduce code duplication?
https://github.com/llvm/llvm-project/pull/169591
More information about the llvm-commits
mailing list