[llvm] 276480b - [AMDGPU] Fix || vs && precedence warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 30 06:03:04 PDT 2022
Author: Simon Pilgrim
Date: 2022-07-30T14:02:54+01:00
New Revision: 276480b1d3aec624c46794c3345446f00629004e
URL: https://github.com/llvm/llvm-project/commit/276480b1d3aec624c46794c3345446f00629004e
DIFF: https://github.com/llvm/llvm-project/commit/276480b1d3aec624c46794c3345446f00629004e.diff
LOG: [AMDGPU] Fix || vs && precedence warning. NFC.
Added:
Modified:
llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp b/llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
index 4558ddf6dbfe..11f7156b8045 100644
--- a/llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
+++ b/llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
@@ -211,10 +211,10 @@ MachineInstr *GCNDPPCombine::createDPPInst(MachineInstr &OrigMI,
const bool MaskAllLanes =
RowMaskOpnd->getImm() == 0xF && BankMaskOpnd->getImm() == 0xF;
(void)MaskAllLanes;
- assert(MaskAllLanes ||
- !(TII->isVOPC(DPPOp) ||
- (TII->isVOP3(DPPOp) && OrigOpE32 != -1 && TII->isVOPC(OrigOpE32))) &&
- "VOPC cannot form DPP unless mask is full");
+ assert((MaskAllLanes ||
+ !(TII->isVOPC(DPPOp) || (TII->isVOP3(DPPOp) && OrigOpE32 != -1 &&
+ TII->isVOPC(OrigOpE32)))) &&
+ "VOPC cannot form DPP unless mask is full");
auto DPPInst = BuildMI(*OrigMI.getParent(), OrigMI,
OrigMI.getDebugLoc(), TII->get(DPPOp))
More information about the llvm-commits
mailing list