aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-05-01 09:20:44 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-05-01 09:20:44 +0000
commit22608c2d1feeb649770f8cceab5ccdf949a24543 (patch)
tree9de5764bad34d6a7ad6c9e393ae26289073c6699 /lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
parentf229a5d4beffae21e89481cb93c874ac5a149c2d (diff)
Dis-favor stores more
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28035 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
index d686267e40..f964490b1c 100644
--- a/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
+++ b/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
@@ -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;