Fix GCC -Wlogical-op-parentheses warning. NFCI.

llvm-svn: 325129
This commit is contained in:
Simon Pilgrim 2018-02-14 15:07:36 +00:00
parent fe1016c485
commit ded6e7a263
1 changed files with 2 additions and 2 deletions

View File

@ -34222,8 +34222,8 @@ static SDValue combineTruncateWithSat(SDValue In, EVT VT, const SDLoc &DL,
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);