]> granicus.if.org Git - llvm/commitdiff
[Misched]: Remove double call getMicroOpFactor.NFC.
authorJaved Absar <javed.absar@arm.com>
Wed, 27 Sep 2017 10:31:58 +0000 (10:31 +0000)
committerJaved Absar <javed.absar@arm.com>
Wed, 27 Sep 2017 10:31:58 +0000 (10:31 +0000)
Reviewed by: @MatzeB
Differential Revision: https://reviews.llvm.org/D38176

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314296 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineScheduler.cpp

index 2a9965afab1bb30310213996cdca3aec048202ba..6780d76e876db9d3b60c6bba832b3ce0cf3d09d1 100644 (file)
@@ -2363,7 +2363,7 @@ LLVM_DUMP_METHOD void SchedBoundary::dumpScheduledState() const {
     ResCount = getResourceCount(ZoneCritResIdx);
   } else {
     ResFactor = SchedModel->getMicroOpFactor();
-    ResCount = RetiredMOps * SchedModel->getMicroOpFactor();
+    ResCount = RetiredMOps * ResFactor;
   }
   unsigned LFactor = SchedModel->getLatencyFactor();
   dbgs() << Available.getName() << " @" << CurrCycle << "c\n"