Skip to content

Commit 0f71704

Browse files
committed
[X86] lowerX86FPLogicOp - use MVT::changeVectorElementTypeToInteger(). NFC.
1 parent 46b4ca8 commit 0f71704

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54801,11 +54801,7 @@ static SDValue lowerX86FPLogicOp(SDNode *N, SelectionDAG &DAG,
5480154801
return SDValue();
5480254802

5480354803
SDLoc dl(N);
54804-
54805-
unsigned IntBits = VT.getScalarSizeInBits();
54806-
MVT IntSVT = MVT::getIntegerVT(IntBits);
54807-
MVT IntVT = MVT::getVectorVT(IntSVT, VT.getSizeInBits() / IntBits);
54808-
54804+
MVT IntVT = VT.changeVectorElementTypeToInteger();
5480954805
SDValue Op0 = DAG.getBitcast(IntVT, N->getOperand(0));
5481054806
SDValue Op1 = DAG.getBitcast(IntVT, N->getOperand(1));
5481154807
unsigned IntOpcode;

0 commit comments

Comments
 (0)