[llvm] r341956 - [X86] Correct the one use check from r341915.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 11 09:05:03 PDT 2018
Author: ctopper
Date: Tue Sep 11 09:05:03 2018
New Revision: 341956
URL: http://llvm.org/viewvc/llvm-project?rev=341956&view=rev
Log:
[X86] Correct the one use check from r341915.
The one use check should be on the bitcast, not the input to the bitcast.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=341956&r1=341955&r2=341956&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Sep 11 09:05:03 2018
@@ -38707,7 +38707,7 @@ static SDValue combineMOVMSK(SDNode *N,
}
// 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())
More information about the llvm-commits
mailing list