mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Fix typo, make helper static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127335 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5eae24e199
commit
d7cdc3e1f9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user