[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp

Evan Cheng evan.cheng at apple.com
Mon May 1 02:21:24 PDT 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

ScheduleDAGList.cpp updated: 1.51 -> 1.52
---
Log message:

Dis-favor stores more

---
Diffs of the changes:  (+2 -2)

 ScheduleDAGList.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp:1.51 llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp:1.52
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp:1.51	Mon May  1 04:14:40 2006
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAGList.cpp	Mon May  1 04:20:44 2006
@@ -821,9 +821,9 @@
   // 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;






More information about the llvm-commits mailing list