[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
Tue Jul 23 10:08:49 PDT 2024
================
@@ -9353,23 +9352,23 @@ SDValue TargetLowering::expandAVG(SDNode *N, SelectionDAG &DAG) const {
}
}
- if (Opc == ISD::AVGFLOORU && SVT == MVT::i128) {
+ if (VT.isScalarInteger() && !isTypeLegal(VT)) {
----------------
medievalghoul wrote:
I added it back
https://github.com/llvm/llvm-project/pull/99913
More information about the llvm-commits
mailing list