From 1a77bcc0d2317b97b19f6386b1d40ab864e2a26e Mon Sep 17 00:00:00 2001 From: Javed Absar Date: Wed, 27 Sep 2017 10:31:58 +0000 Subject: [PATCH] [Misched]: Remove double call getMicroOpFactor.NFC. Reviewed by: @MatzeB Differential Revision: https://reviews.llvm.org/D38176 llvm-svn: 314296 --- llvm/lib/CodeGen/MachineScheduler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp index 2a9965afab1b..6780d76e876d 100644 --- a/llvm/lib/CodeGen/MachineScheduler.cpp +++ b/llvm/lib/CodeGen/MachineScheduler.cpp @@ -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"