[X86] Correct the one use check from r341915.

The one use check should be on the bitcast, not the input to the bitcast.

llvm-svn: 341956
This commit is contained in:
Craig Topper 2018-09-11 16:05:03 +00:00
parent ac68cab9e1
commit d7362a3e5f
1 changed files with 1 additions and 1 deletions

View File

@ -38707,7 +38707,7 @@ static SDValue combineMOVMSK(SDNode *N, SelectionDAG &DAG,
} }
// Look through int->fp bitcasts that don't change the element width. // Look through int->fp bitcasts that don't change the element width.
if (Src.getOpcode() == ISD::BITCAST && Src.getOperand(0).hasOneUse() && if (Src.getOpcode() == ISD::BITCAST && Src.hasOneUse() &&
SrcVT.isFloatingPoint() && SrcVT.isFloatingPoint() &&
Src.getOperand(0).getValueType() == Src.getOperand(0).getValueType() ==
EVT(SrcVT).changeVectorElementTypeToInteger()) EVT(SrcVT).changeVectorElementTypeToInteger())