summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-09-11 16:05:03 +0000
committerCraig Topper <craig.topper@intel.com>2018-09-11 16:05:03 +0000
commitd7362a3e5f735b192bf398211a215c493adfe78e (patch)
tree7110b94c915ed785c5c6401506b797bd6bc7fe02
parentac68cab9e1a1fb6283a9fb650569202a0c940278 (diff)
downloadbcm5719-llvm-d7362a3e5f735b192bf398211a215c493adfe78e.tar.gz
bcm5719-llvm-d7362a3e5f735b192bf398211a215c493adfe78e.zip
[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
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index d72bb5735f7..7daabbe13bb 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -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())
OpenPOWER on IntegriCloud