[llvm] r361927 - Inline a variable into debug section to fix unused variable warning.
Richard Trieu via llvm-commits
llvm-commits at lists.llvm.org
Tue May 28 21:09:32 PDT 2019
Author: rtrieu
Date: Tue May 28 21:09:32 2019
New Revision: 361927
URL: http://llvm.org/viewvc/llvm-project?rev=361927&view=rev
Log:
Inline a variable into debug section to fix 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=361927&r1=361926&r2=361927&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachinePipeliner.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachinePipeliner.cpp Tue May 28 21:09:32 2019
@@ -3963,10 +3963,10 @@ void ResourceManager::reserveResources(c
STI->getWriteProcResEnd(SCDesc))) {
if (!PRE.Cycles)
continue;
- const MCProcResourceDesc *ProcResource =
- SM.getProcResource(PRE.ProcResourceIdx);
++ProcResourceCount[PRE.ProcResourceIdx];
LLVM_DEBUG({
+ const MCProcResourceDesc *ProcResource =
+ SM.getProcResource(PRE.ProcResourceIdx);
dbgs() << format(" %16s(%2d): Count: %2d, NumUnits:%2d, Cycles:%2d\n",
ProcResource->Name, PRE.ProcResourceIdx,
ProcResourceCount[PRE.ProcResourceIdx],
More information about the llvm-commits
mailing list