diff options
author | Richard Trieu <rtrieu@google.com> | 2019-05-29 04:09:32 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2019-05-29 04:09:32 +0000 |
commit | c77aff7e170ae6f50a403f459a9dcba211b0d4c8 (patch) | |
tree | dbfed10ce1bc50e4b5ef2c3ef1c8d5389ac89100 /llvm/lib/CodeGen/MachinePipeliner.cpp | |
parent | 87575f6501dc4c1ae27e3bd6a469fa0391964a2b (diff) | |
download | llvm-c77aff7e170ae6f50a403f459a9dcba211b0d4c8.zip llvm-c77aff7e170ae6f50a403f459a9dcba211b0d4c8.tar.gz llvm-c77aff7e170ae6f50a403f459a9dcba211b0d4c8.tar.bz2 |
Inline a variable into debug section to fix unused variable warning.
llvm-svn: 361927
Diffstat (limited to 'llvm/lib/CodeGen/MachinePipeliner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachinePipeliner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachinePipeliner.cpp b/llvm/lib/CodeGen/MachinePipeliner.cpp index 61441d9..af159f1 100644 --- a/llvm/lib/CodeGen/MachinePipeliner.cpp +++ b/llvm/lib/CodeGen/MachinePipeliner.cpp @@ -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], |