summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commitc22893a3b7b9f07f47a0cec0cd77f5bfcd35a122 (patch)
tree1b4a3bf84850e6d108aa20e315f8ff2faa76b961 /llvm/lib
parent16cf9343812e52325e501829fcec6174b38089bd (diff)
downloadbcm5719-llvm-c22893a3b7b9f07f47a0cec0cd77f5bfcd35a122.tar.gz
bcm5719-llvm-c22893a3b7b9f07f47a0cec0cd77f5bfcd35a122.zip
Enable pre-regalloc scheduling load clustering by default.
llvm-svn: 94255
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
index 159bab0709c..b51c61bf6da 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud