summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-05-25 08:37:31 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-05-25 08:37:31 +0000
commit009f5f55f7b1cf733d10770254ed70ebd06d5880 (patch)
tree0a36703b631c4331c71152b3c557d7cce5a25ba8 /llvm/lib/CodeGen
parentcafbb1535d9d6af1c7aa45150a6940c831ea749b (diff)
downloadbcm5719-llvm-009f5f55f7b1cf733d10770254ed70ebd06d5880.tar.gz
bcm5719-llvm-009f5f55f7b1cf733d10770254ed70ebd06d5880.zip
Turn on -sched-commute-nodes by default.
llvm-svn: 28465
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
index cd5abad10ef..09c0af905ec 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
@@ -31,10 +31,6 @@
using namespace llvm;
namespace {
- cl::opt<bool> SchedCommuteNodes("sched-commute-nodes", cl::Hidden);
-}
-
-namespace {
//===----------------------------------------------------------------------===//
/// ScheduleDAGRRList - The actual register reduction list scheduler
/// implementation. This supports both top-down and bottom-up scheduling.
@@ -100,8 +96,7 @@ void ScheduleDAGRRList::Schedule() {
AvailableQueue->releaseState();
- if (SchedCommuteNodes)
- CommuteNodesToReducePressure();
+ CommuteNodesToReducePressure();
DEBUG(std::cerr << "*** Final schedule ***\n");
DEBUG(dumpSchedule());
@@ -685,7 +680,7 @@ void BURegReductionPriorityQueue<SF>::AddPseudoTwoAddrDeps() {
SUnit *SuccSU = I->first;
if (SuccSU != SU &&
(!canClobber(SuccSU, DUSU) ||
- (SchedCommuteNodes && !SU->isCommutable && SuccSU->isCommutable))){
+ (!SU->isCommutable && SuccSU->isCommutable))){
if (SuccSU->Depth == SU->Depth && !isReachable(SuccSU, SU)) {
DEBUG(std::cerr << "Adding an edge from SU # " << SU->NodeNum
<< " to SU #" << SuccSU->NodeNum << "\n");
OpenPOWER on IntegriCloud