[llvm] [DAGCombiner][LegalizeTypes] Fuse i128 sdiv+srem / udiv+urem into single __divmodti4 / __udivmodti4 call (PR #187908)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 09:05:43 PDT 2026
================
@@ -30626,6 +30629,72 @@ SDValue X86TargetLowering::LowerWin64_i128OP(SDValue Op, SelectionDAG &DAG) cons
return DAG.getBitcast(VT, CallInfo.first);
}
+void X86TargetLowering::LowerWin64_i128DIVREM(SDNode *N, SelectionDAG &DAG,
+ SDValue &Quot,
+ SDValue &Rem) const {
+ assert(Subtarget.isTargetWin64() && "Unexpected target");
+ EVT VT = N->getValueType(0);
+ assert(VT == MVT::i128 && "Unexpected type");
+
+ bool isSigned = N->getOpcode() == ISD::SDIVREM;
----------------
topperc wrote:
Capitalize variable name
https://github.com/llvm/llvm-project/pull/187908
More information about the llvm-commits
mailing list