summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-16 02:01:19 +0000
committerDan Gohman <gohman@apple.com>2010-07-16 02:01:19 +0000
commit103c4ebea5948630aa777cc9c0c40568ad16a5d6 (patch)
tree373e161f606e60b8ec8e4424d0f1f094e6af2b6e /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parentbdb298912bde7e83df8c04e897a81eefd7aab02a (diff)
downloadbcm5719-llvm-103c4ebea5948630aa777cc9c0c40568ad16a5d6.tar.gz
bcm5719-llvm-103c4ebea5948630aa777cc9c0c40568ad16a5d6.zip
Use the source-order scheduler instead of the "fast" scheduler at -O0,
because it's more likely to keep debug line information in its original order. llvm-svn: 108496
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 08ba5482f7d..65261341764 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -132,7 +132,7 @@ namespace llvm {
const TargetLowering &TLI = IS->getTargetLowering();
if (OptLevel == CodeGenOpt::None)
- return createFastDAGScheduler(IS, OptLevel);
+ return createSourceListDAGScheduler(IS, OptLevel);
if (TLI.getSchedulingPreference() == Sched::Latency)
return createTDListDAGScheduler(IS, OptLevel);
if (TLI.getSchedulingPreference() == Sched::RegPressure)
OpenPOWER on IntegriCloud