From: Simon Pilgrim Date: Fri, 26 Apr 2019 12:23:42 +0000 (+0000) Subject: Fix Wparentheses warning. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7abc631a80d0c681128772c3ae4fee9aa233a81;p=llvm Fix Wparentheses warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359299 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index d3d103a20bd..7aaf71adf79 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -5013,11 +5013,11 @@ bool X86TargetLowering::hasAndNot(SDValue Y) const { bool X86TargetLowering::shouldFoldConstantShiftPairToMask( const SDNode *N, CombineLevel Level) const { - assert((N->getOpcode() == ISD::SHL && - N->getOperand(0).getOpcode() == ISD::SRL) || - (N->getOpcode() == ISD::SRL && - N->getOperand(0).getOpcode() == ISD::SHL) && - "Expected shift-shift mask"); + assert(((N->getOpcode() == ISD::SHL && + N->getOperand(0).getOpcode() == ISD::SRL) || + (N->getOpcode() == ISD::SRL && + N->getOperand(0).getOpcode() == ISD::SHL)) && + "Expected shift-shift mask"); if (Subtarget.hasFastVectorShiftMasks() && N->getValueType(0).isVector()) { // Only fold if the shift values are equal - so it folds to AND.