Inline a variable into debug section to fix unused variable warning.

llvm-svn: 361927
This commit is contained in:
Richard Trieu 2019-05-29 04:09:32 +00:00
parent 87575f6501
commit c77aff7e17
1 changed files with 2 additions and 2 deletions

View File

@ -3963,10 +3963,10 @@ void ResourceManager::reserveResources(const MCInstrDesc *MID) {
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],