[llvm] r325129 - Fix GCC -Wlogical-op-parentheses warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 14 07:07:36 PST 2018
Author: rksimon
Date: Wed Feb 14 07:07:36 2018
New Revision: 325129
URL: http://llvm.org/viewvc/llvm-project?rev=325129&view=rev
Log:
Fix GCC -Wlogical-op-parentheses warning. NFCI.
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=325129&r1=325128&r2=325129&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Feb 14 07:07:36 2018
@@ -34222,8 +34222,8 @@ static SDValue combineTruncateWithSat(SD
return DAG.getNode(X86ISD::VTRUNCUS, DL, VT, USatVal);
}
if (VT.isVector() && isPowerOf2_32(VT.getVectorNumElements()) &&
- (VT.getScalarType() == MVT::i8 && InVT.getScalarType() == MVT::i16) ||
- (VT.getScalarType() == MVT::i16 && InVT.getScalarType() == MVT::i32)) {
+ ((VT.getScalarType() == MVT::i8 && InVT.getScalarType() == MVT::i16) ||
+ (VT.getScalarType() == MVT::i16 && InVT.getScalarType() == MVT::i32))) {
if (auto SSatVal = detectSSatPattern(In, VT))
return truncateVectorWithPACK(X86ISD::PACKSS, VT, SSatVal, DL, DAG,
Subtarget);
More information about the llvm-commits
mailing list