[llvm] bc9b964 - [NFC] Suppress unused variable warning in non-assert builds
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 20 12:26:52 PDT 2022
Author: Arthur Eubanks
Date: 2022-07-20T12:26:16-07:00
New Revision: bc9b964f8f38bdaa4574847fc59527ea597dbc0a
URL: https://github.com/llvm/llvm-project/commit/bc9b964f8f38bdaa4574847fc59527ea597dbc0a
DIFF: https://github.com/llvm/llvm-project/commit/bc9b964f8f38bdaa4574847fc59527ea597dbc0a.diff
LOG: [NFC] Suppress unused variable warning in non-assert builds
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 99bef5416d9c..4558ddf6dbfe 100644
--- a/llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
+++ b/llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
@@ -210,6 +210,7 @@ MachineInstr *GCNDPPCombine::createDPPInst(MachineInstr &OrigMI,
assert(BankMaskOpnd && BankMaskOpnd->isImm());
const bool MaskAllLanes =
RowMaskOpnd->getImm() == 0xF && BankMaskOpnd->getImm() == 0xF;
+ (void)MaskAllLanes;
assert(MaskAllLanes ||
!(TII->isVOPC(DPPOp) ||
(TII->isVOP3(DPPOp) && OrigOpE32 != -1 && TII->isVOPC(OrigOpE32))) &&
More information about the llvm-commits
mailing list