summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-03-09 16:19:12 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-03-09 16:19:12 +0000
commitb2e4d84305d20bc33b13a3b00beb5f1095ce6815 (patch)
treee9f3960e3cd85d81d4685c40c8c0422a3daf1abb
parentd6c80dec764ef3aabce74a7b52fd6513964d4e1d (diff)
downloadbcm5719-llvm-b2e4d84305d20bc33b13a3b00beb5f1095ce6815.tar.gz
bcm5719-llvm-b2e4d84305d20bc33b13a3b00beb5f1095ce6815.zip
Fix typo, make helper static.
llvm-svn: 127335
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
index 42d096e0490..f1a5a6599b2 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
@@ -2235,7 +2235,7 @@ bool ilp_ls_rr_sort::isReady(SUnit *SU, unsigned CurCycle) const {
return true;
}
-bool canEnableCoaelscing(SUnit *SU) {
+static bool canEnableCoalescing(SUnit *SU) {
unsigned Opc = SU->getNode() ? SU->getNode()->getOpcode() : 0;
if (Opc == ISD::TokenFactor || Opc == ISD::CopyToReg)
// CopyToReg should be close to its uses to facilitate coalescing and
@@ -2278,8 +2278,8 @@ bool ilp_ls_rr_sort::operator()(SUnit *left, SUnit *right) const {
}
if (!DisableSchedRegPressure && (LPDiff > 0 || RPDiff > 0)) {
- bool LReduce = canEnableCoaelscing(left);
- bool RReduce = canEnableCoaelscing(right);
+ bool LReduce = canEnableCoalescing(left);
+ bool RReduce = canEnableCoalescing(right);
DEBUG(if (LReduce != RReduce) ++FactorCount[FactPressureDiff]);
if (LReduce && !RReduce) return false;
if (RReduce && !LReduce) return true;
OpenPOWER on IntegriCloud