summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/Views/InstructionInfoView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-mca/Views/InstructionInfoView.cpp')
-rw-r--r--llvm/tools/llvm-mca/Views/InstructionInfoView.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-mca/Views/InstructionInfoView.cpp b/llvm/tools/llvm-mca/Views/InstructionInfoView.cpp
index 60b8b1f5141..1fbffa3e5b6 100644
--- a/llvm/tools/llvm-mca/Views/InstructionInfoView.cpp
+++ b/llvm/tools/llvm-mca/Views/InstructionInfoView.cpp
@@ -43,6 +43,9 @@ void InstructionInfoView::printView(raw_ostream &OS) const {
const MCSchedClassDesc &SCDesc = *SM.getSchedClassDesc(SchedClassID);
unsigned NumMicroOpcodes = SCDesc.NumMicroOps;
unsigned Latency = MCSchedModel::computeInstrLatency(STI, SCDesc);
+ // Add extra latency due to delays in the forwarding data paths.
+ Latency += MCSchedModel::getForwardingDelayCycles(
+ STI.getReadAdvanceEntries(SCDesc));
Optional<double> RThroughput =
MCSchedModel::getReciprocalThroughput(STI, SCDesc);
OpenPOWER on IntegriCloud