[llvm] [X86] Lower scalar integer div/rem to FP division (PR #216589)
Ankit Kumar Tiwari via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 09:56:04 PDT 2026
================
@@ -50735,9 +50735,17 @@ static SDValue combineIntDivRem(SDNode *N, SelectionDAG &DAG,
bool IsRem = Opc == ISD::UREM || Opc == ISD::SREM;
bool IsSigned = Opc == ISD::SDIV || Opc == ISD::SREM;
+ // Scalar functions that do not use XMM registers must not get this combine.
+ if (!VT.isVector() &&
+ (Subtarget.useSoftFloat() ||
+ DAG.getMachineFunction().getFunction().hasFnAttribute(
+ Attribute::NoImplicitFloat)))
+ return SDValue();
----------------
ankit-cybertron wrote:
Done!
https://github.com/llvm/llvm-project/pull/216589
More information about the llvm-commits
mailing list