1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Dis-favor stores more

llvm-svn: 28035
This commit is contained in:
Evan Cheng 2006-05-01 09:20:44 +00:00
parent 494e47d755
commit 44e851f6ec

View File

@ -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
// the stores before the next series of computation starts.
if (!left->isStore && right->isStore)
LBonus += 2;
LBonus += 4;
if (left->isStore && !right->isStore)
RBonus += 2;
RBonus += 4;
// Priority1 is just the number of live range genned.
int LPriority1 = left ->NumPredsLeft - LBonus;