diff options
author | Dan Gohman <gohman@apple.com> | 2008-11-20 03:11:19 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-11-20 03:11:19 +0000 |
commit | 9e76fea3abd4229749e6ead46a0016cabff4a056 (patch) | |
tree | 914c36e3bda2a2d17f6035ba7aefb000ac8bd01b /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 148d245c325d3b1e758e456aece494a5b04308cc (diff) |
Remove the "fast" form of the list-burr scheduler, and use the
dedicated "fast" scheduler in -fast mode instead, which is
faster. This speeds up llc -fast by a few percent on some
testcases -- the speedup only happens for code not handled by
fast-isel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59700 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index e43b32535c..079e95f25b 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -138,13 +138,13 @@ namespace llvm { bool Fast) { TargetLowering &TLI = IS->getTargetLowering(); - if (TLI.getSchedulingPreference() == TargetLowering::SchedulingForLatency) { + if (Fast) + return createFastDAGScheduler(IS, DAG, TM, BB, Fast); + if (TLI.getSchedulingPreference() == TargetLowering::SchedulingForLatency) return createTDListDAGScheduler(IS, DAG, TM, BB, Fast); - } else { - assert(TLI.getSchedulingPreference() == - TargetLowering::SchedulingForRegPressure && "Unknown sched type!"); - return createBURRListDAGScheduler(IS, DAG, TM, BB, Fast); - } + assert(TLI.getSchedulingPreference() == + TargetLowering::SchedulingForRegPressure && "Unknown sched type!"); + return createBURRListDAGScheduler(IS, DAG, TM, BB, Fast); } } |