summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-01-22 23:49:45 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-01-22 23:49:45 +0000
commit42dae2d5ba0c22bed65e80ac56a7c304de911c33 (patch)
tree6ebc5f24069c255a5cc84d65a1895853b37cdd85
parentafc36739cda2bd95ce2856ad90583d0c8bfc20f9 (diff)
downloadllvm-42dae2d5ba0c22bed65e80ac56a7c304de911c33.tar.gz
llvm-42dae2d5ba0c22bed65e80ac56a7c304de911c33.tar.bz2
llvm-42dae2d5ba0c22bed65e80ac56a7c304de911c33.tar.xz
Enable pre-regalloc scheduling load clustering by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94255 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
index 159bab0709..b51c61bf6d 100644
--- a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
+++ b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
@@ -24,17 +24,12 @@
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
-#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
STATISTIC(LoadsClustered, "Number of loads clustered together");
-static cl::opt<bool>
-ClusterLoads("cluster-loads", cl::Hidden,
- cl::desc("Schedule nearby loads together and in order"));
-
ScheduleDAGSDNodes::ScheduleDAGSDNodes(MachineFunction &mf)
: ScheduleDAG(mf) {
}
@@ -360,8 +355,7 @@ void ScheduleDAGSDNodes::AddSchedEdges() {
/// flagged together nodes with a single SUnit.
void ScheduleDAGSDNodes::BuildSchedGraph(AliasAnalysis *AA) {
// Cluster loads from "near" addresses into combined SUnits.
- if (ClusterLoads)
- ClusterNeighboringLoads();
+ ClusterNeighboringLoads();
// Populate the SUnits array.
BuildSchedUnits();
// Compute all the scheduling dependencies between nodes.