Skip to content

Commit 114d435

Browse files
committed
Check SSE2
1 parent d6a1fa3 commit 114d435

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56405,8 +56405,8 @@ static SDValue combineFPToSInt(SDNode *N, SelectionDAG &DAG,
5640556405
const X86Subtarget &Subtarget) {
5640656406
EVT VT = N->getValueType(0);
5640756407
SDValue Src = N->getOperand(0);
56408-
if (Src.getOpcode() == ISD::FRINT && VT.getScalarType() == MVT::i32 &&
56409-
Src.hasOneUse())
56408+
if (Subtarget.hasSSE2() && Src.getOpcode() == ISD::FRINT &&
56409+
VT.getScalarType() == MVT::i32 && Src.hasOneUse())
5641056410
return DAG.getNode(ISD::LRINT, SDLoc(N), VT, Src.getOperand(0));
5641156411

5641256412
return SDValue();

0 commit comments

Comments
 (0)