[llvm] r361924 - Inline value into debug statement to avoid unused variable warning.
Richard Trieu via llvm-commits
llvm-commits at lists.llvm.org
Tue May 28 20:43:02 PDT 2019
Author: rtrieu
Date: Tue May 28 20:43:01 2019
New Revision: 361924
URL: http://llvm.org/viewvc/llvm-project?rev=361924&view=rev
Log:
Inline value into debug statement to avoid unused variable warning.
Modified:
llvm/trunk/lib/CodeGen/MachinePipeliner.cpp
Modified: llvm/trunk/lib/CodeGen/MachinePipeliner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachinePipeliner.cpp?rev=361924&r1=361923&r2=361924&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachinePipeliner.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachinePipeliner.cpp Tue May 28 20:43:01 2019
@@ -3965,13 +3965,12 @@ void ResourceManager::reserveResources(c
continue;
const MCProcResourceDesc *ProcResource =
SM.getProcResource(PRE.ProcResourceIdx);
- unsigned NumUnits = ProcResource->NumUnits;
++ProcResourceCount[PRE.ProcResourceIdx];
LLVM_DEBUG({
dbgs() << format(" %16s(%2d): Count: %2d, NumUnits:%2d, Cycles:%2d\n",
ProcResource->Name, PRE.ProcResourceIdx,
- ProcResourceCount[PRE.ProcResourceIdx], NumUnits,
- PRE.Cycles);
+ ProcResourceCount[PRE.ProcResourceIdx],
+ ProcResource->NumUnits, PRE.Cycles);
});
}
LLVM_DEBUG({ dbgs() << "reserveResources: done!\n\n"; });
More information about the llvm-commits
mailing list