OSDN Git Service

Inline value into debug statement to avoid unused variable warning.
authorRichard Trieu <rtrieu@google.com>
Wed, 29 May 2019 03:43:01 +0000 (03:43 +0000)
committerRichard Trieu <rtrieu@google.com>
Wed, 29 May 2019 03:43:01 +0000 (03:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361924 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachinePipeliner.cpp

index 051cd07..61441d9 100644 (file)
@@ -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"; });