From e8698ead9dd12252dab26a3412788e14303d634d Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Wed, 29 May 2019 03:43:01 +0000 Subject: [PATCH] Inline value into debug statement to avoid unused variable warning. llvm-svn: 361924 --- llvm/lib/CodeGen/MachinePipeliner.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/lib/CodeGen/MachinePipeliner.cpp b/llvm/lib/CodeGen/MachinePipeliner.cpp index 051cd07cdae6..61441d909388 100644 --- a/llvm/lib/CodeGen/MachinePipeliner.cpp +++ b/llvm/lib/CodeGen/MachinePipeliner.cpp @@ -3965,13 +3965,12 @@ void ResourceManager::reserveResources(const MCInstrDesc *MID) { 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"; });