summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-05-17 22:37:09 +0000
committerAndrew Trick <atrick@apple.com>2012-05-17 22:37:09 +0000
commit6a50baa26e88d89985d587ee77384ec9830004a4 (patch)
treeab0982ef421a32932d5053f252f3d920520feca2 /llvm/lib/CodeGen/MachineScheduler.cpp
parentf1b225d0e02cae5f9fac63ce318f7039c207db27 (diff)
downloadbcm5719-llvm-6a50baa26e88d89985d587ee77384ec9830004a4.tar.gz
bcm5719-llvm-6a50baa26e88d89985d587ee77384ec9830004a4.zip
comments
llvm-svn: 157020
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index 0aaef5d5999..207d65a6b94 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -1,4 +1,4 @@
-//===- MachineScheduler.cpp - Machine Instruction Scheduler ---------------===//excess
+//===- MachineScheduler.cpp - Machine Instruction Scheduler ---------------===//
//
// The LLVM Compiler Infrastructure
//
@@ -808,7 +808,8 @@ traceCandidate(const char *Label, unsigned QID, SUnit *SU,
}
#endif
-/// Return true if the LHS reg pressure effect is better than RHS.
+/// pickNodeFromQueue helper that returns true if the LHS reg pressure effect is
+/// more desirable than RHS from scheduling standpoint.
static bool compareRPDelta(const RegPressureDelta &LHS,
const RegPressureDelta &RHS) {
// Compare each component of pressure in decreasing order of importance
OpenPOWER on IntegriCloud