Turn on -sched-commute-nodes by default.

llvm-svn: 28465
This commit is contained in:
Evan Cheng 2006-05-25 08:37:31 +00:00
parent cafbb1535d
commit 009f5f55f7
1 changed files with 2 additions and 7 deletions

View File

@ -30,10 +30,6 @@
#include "llvm/Support/CommandLine.h"
using namespace llvm;
namespace {
cl::opt<bool> SchedCommuteNodes("sched-commute-nodes", cl::Hidden);
}
namespace {
//===----------------------------------------------------------------------===//
/// ScheduleDAGRRList - The actual register reduction list scheduler
@ -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");