[llvm] [DAG] Reducing instructions by better legalization handling of AVGFLOORU for i128 data types (PR #99913)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 22 14:07:58 PDT 2024
================
@@ -9352,6 +9353,27 @@ SDValue TargetLowering::expandAVG(SDNode *N, SelectionDAG &DAG) const {
}
}
+ if (Opc == ISD::AVGFLOORU && SVT == MVT::i128) {
----------------
RKSimon wrote:
Don't limit this to i128 - better off using a !isTypeLegal(VT) check
https://github.com/llvm/llvm-project/pull/99913
More information about the llvm-commits
mailing list