[llvm] [DAG] Reducing instructions by better legalization handling of AVGFLOORU for illegal data types (PR #99913)
Julius Alexandre via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 07:19:10 PDT 2024
================
@@ -9352,6 +9352,26 @@ SDValue TargetLowering::expandAVG(SDNode *N, SelectionDAG &DAG) const {
}
}
+ if (Opc == ISD::AVGFLOORU && VT.isScalarInteger() && !isTypeLegal(VT)) {
+ SDValue UAddWithOverflow =
----------------
medievalghoul wrote:
I added it
https://github.com/llvm/llvm-project/pull/99913
More information about the llvm-commits
mailing list