diff options
| author | Craig Topper <craig.topper@intel.com> | 2018-09-11 16:05:03 +0000 | 
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2018-09-11 16:05:03 +0000 | 
| commit | d7362a3e5f735b192bf398211a215c493adfe78e (patch) | |
| tree | 7110b94c915ed785c5c6401506b797bd6bc7fe02 | |
| parent | ac68cab9e1a1fb6283a9fb650569202a0c940278 (diff) | |
| download | bcm5719-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.cpp | 2 | 
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())  | 

