[llvm] 1f43367 - [X86] getTargetVShiftNode - Fix Wparentheses gcc warning.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 12 08:37:36 PST 2022
Author: Simon Pilgrim
Date: 2022-02-12T16:37:24Z
New Revision: 1f43367377d517a9da3b7fbfb457d92ad68146a1
URL: https://github.com/llvm/llvm-project/commit/1f43367377d517a9da3b7fbfb457d92ad68146a1
DIFF: https://github.com/llvm/llvm-project/commit/1f43367377d517a9da3b7fbfb457d92ad68146a1.diff
LOG: [X86] getTargetVShiftNode - Fix Wparentheses gcc warning.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index d1d0de420c0b..2352835c8bdc 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -25746,8 +25746,8 @@ static SDValue getTargetVShiftNode(unsigned Opc, const SDLoc &dl, MVT VT,
DAG.getConstant(0, dl, AmtVT.getScalarType()));
MaskElts[0] = DAG.getAllOnesConstant(dl, AmtVT.getScalarType());
SDValue Mask = DAG.getBuildVector(AmtVT, dl, MaskElts);
- if (Mask = DAG.FoldConstantArithmetic(ISD::AND, dl, AmtVT,
- {ShAmt.getOperand(1), Mask})) {
+ if ((Mask = DAG.FoldConstantArithmetic(ISD::AND, dl, AmtVT,
+ {ShAmt.getOperand(1), Mask}))) {
ShAmt = DAG.getNode(ISD::AND, dl, AmtVT, ShAmt.getOperand(0), Mask);
IsMasked = true;
}
More information about the llvm-commits
mailing list