forked from OSchip/llvm-project
[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:
parent
ac68cab9e1
commit
d7362a3e5f
|
@ -38707,7 +38707,7 @@ static SDValue combineMOVMSK(SDNode *N, SelectionDAG &DAG,
|
|||
}
|
||||
|
||||
// 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() &&
|
||||
Src.getOperand(0).getValueType() ==
|
||||
EVT(SrcVT).changeVectorElementTypeToInteger())
|
||||
|
|
Loading…
Reference in New Issue