summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-09-04 21:00:08 +0000
committerAndrew Trick <atrick@apple.com>2013-09-04 21:00:08 +0000
commitd1d0d37a198df718b0fd1f838b7d9593b1636299 (patch)
treedef52e62f8d9d0967a1dcb131b74cae9c7d62c58 /lib/CodeGen/MachineScheduler.cpp
parent00b5fa4c280a5e7b84142d73b0ce86fa13654f2a (diff)
downloadllvm-d1d0d37a198df718b0fd1f838b7d9593b1636299.tar.gz
llvm-d1d0d37a198df718b0fd1f838b7d9593b1636299.tar.bz2
llvm-d1d0d37a198df718b0fd1f838b7d9593b1636299.tar.xz
mi-sched: Load clustering is a bit to expensive to enable unconditionally.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189990 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineScheduler.cpp')
-rw-r--r--lib/CodeGen/MachineScheduler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineScheduler.cpp b/lib/CodeGen/MachineScheduler.cpp
index 0aacc3a59d..d9da8381ea 100644
--- a/lib/CodeGen/MachineScheduler.cpp
+++ b/lib/CodeGen/MachineScheduler.cpp
@@ -2753,7 +2753,7 @@ static ScheduleDAGInstrs *createConvergingSched(MachineSchedContext *C) {
// data and pass it to later mutations. Have a single mutation that gathers
// the interesting nodes in one pass.
DAG->addMutation(new CopyConstrain(DAG->TII, DAG->TRI));
- if (EnableLoadCluster)
+ if (EnableLoadCluster && DAG->TII->enableClusterLoads())
DAG->addMutation(new LoadClusterMutation(DAG->TII, DAG->TRI));
if (EnableMacroFusion)
DAG->addMutation(new MacroFusion(DAG->TII));