[llvm] bec8dff - [AMDGPU] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 19 22:37:05 PDT 2022
Author: Fangrui Song
Date: 2022-04-19T22:36:58-07:00
New Revision: bec8dff33e2bf68c72f24e80ee1a734036c4bbe0
URL: https://github.com/llvm/llvm-project/commit/bec8dff33e2bf68c72f24e80ee1a734036c4bbe0
DIFF: https://github.com/llvm/llvm-project/commit/bec8dff33e2bf68c72f24e80ee1a734036c4bbe0.diff
LOG: [AMDGPU] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds
Added:
Modified:
llvm/lib/Target/AMDGPU/R600MachineCFGStructurizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/R600MachineCFGStructurizer.cpp b/llvm/lib/Target/AMDGPU/R600MachineCFGStructurizer.cpp
index 827992c3075c9..0a96c643d9bdc 100644
--- a/llvm/lib/Target/AMDGPU/R600MachineCFGStructurizer.cpp
+++ b/llvm/lib/Target/AMDGPU/R600MachineCFGStructurizer.cpp
@@ -741,6 +741,7 @@ bool R600MachineCFGStructurizer::run() {
++NumIter;
LLVM_DEBUG(dbgs() << "numIter = " << NumIter
<< ", numRemaintedBlk = " << NumRemainedBlk << "\n";);
+ (void)NumIter;
SmallVectorImpl<MachineBasicBlock *>::const_iterator It =
OrderedBlks.begin();
@@ -781,6 +782,7 @@ bool R600MachineCFGStructurizer::run() {
LLVM_DEBUG(dbgs() << "Can't reduce SCC " << getSCCNum(MBB)
<< ", sccNumIter = " << SccNumIter;
dbgs() << "doesn't make any progress\n";);
+ (void)SccNumIter;
ContNextScc = true;
} else if (sccRemainedNumBlk != 1 && sccRemainedNumBlk < SccNumBlk) {
SccNumBlk = sccRemainedNumBlk;
More information about the llvm-commits
mailing list