mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 02:33:44 +00:00
Dis-favor stores more
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28035 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f229a5d4be
commit
22608c2d1f
@ -821,9 +821,9 @@ bool ls_rr_sort::operator()(const SUnit *left, const SUnit *right) const {
|
|||||||
// This would make sure the scheduled code completed all computations and
|
// This would make sure the scheduled code completed all computations and
|
||||||
// the stores before the next series of computation starts.
|
// the stores before the next series of computation starts.
|
||||||
if (!left->isStore && right->isStore)
|
if (!left->isStore && right->isStore)
|
||||||
LBonus += 2;
|
LBonus += 4;
|
||||||
if (left->isStore && !right->isStore)
|
if (left->isStore && !right->isStore)
|
||||||
RBonus += 2;
|
RBonus += 4;
|
||||||
|
|
||||||
// Priority1 is just the number of live range genned.
|
// Priority1 is just the number of live range genned.
|
||||||
int LPriority1 = left ->NumPredsLeft - LBonus;
|
int LPriority1 = left ->NumPredsLeft - LBonus;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user