aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/LatencyPriorityQueue.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-12-10 00:24:36 +0000
committerDan Gohman <gohman@apple.com>2008-12-10 00:24:36 +0000
commitf55a2101e300d1b4d420a1e71ca839e3146bdf70 (patch)
treebb935760d52415fdb0a1a3515d57dcc40bb0a699 /include/llvm/CodeGen/LatencyPriorityQueue.h
parent94ea5be39fe379cda3ff144a99b6a1a69a9fe2e2 (diff)
Update CalcLatency to work in terms of edge latencies, rather than
node latencies. Use CalcLatency instead of manual code in CalculatePriorities to keep it consistent. Previously it computed slightly different results. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LatencyPriorityQueue.h')
-rw-r--r--include/llvm/CodeGen/LatencyPriorityQueue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/LatencyPriorityQueue.h b/include/llvm/CodeGen/LatencyPriorityQueue.h
index f04d2ede5a..f7eb3a62a2 100644
--- a/include/llvm/CodeGen/LatencyPriorityQueue.h
+++ b/include/llvm/CodeGen/LatencyPriorityQueue.h
@@ -115,7 +115,7 @@ public:
private:
void CalculatePriorities();
- int CalcLatency(const SUnit &SU);
+ void CalcLatency(const SUnit &SU);
void AdjustPriorityOfUnscheduledPreds(SUnit *SU);
SUnit *getSingleUnscheduledPred(SUnit *SU);
};