mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-20 11:08:27 +00:00
Turn on -sched-commute-nodes by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28465 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
32cdb6617e
commit
3b78823868
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user