aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG
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
commitd7cdc3e1f9df50be73e239c130dc92239c0e5d32 (patch)
treeb0814f559f0b058c4e2ab0392fa774586b780ceb /lib/CodeGen/SelectionDAG
parent5eae24e199a22fa7fd8bdf3dd50f814f1b6aadbd (diff)
downloadexternal_llvm-d7cdc3e1f9df50be73e239c130dc92239c0e5d32.zip
external_llvm-d7cdc3e1f9df50be73e239c130dc92239c0e5d32.tar.gz
external_llvm-d7cdc3e1f9df50be73e239c130dc92239c0e5d32.tar.bz2
Fix typo, make helper static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127335 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r--lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
index 42d096e..f1a5a65 100644
--- a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
+++ b/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;