aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Alpha/AlphaTargetMachine.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-11-18 13:57:03 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-11-18 13:57:03 +0000
commitf27b6145af0c8d537f04c9340380f242640c638c (patch)
tree77c245939c5320d8be081772f3063bc400288fe9 /lib/Target/Alpha/AlphaTargetMachine.cpp
parente21ea61588996609f827213a2701a204f2f13fb3 (diff)
prevent latent switch creation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24413 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaTargetMachine.cpp')
-rw-r--r--lib/Target/Alpha/AlphaTargetMachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Alpha/AlphaTargetMachine.cpp b/lib/Target/Alpha/AlphaTargetMachine.cpp
index fd9cbe59bc..21a7f98981 100644
--- a/lib/Target/Alpha/AlphaTargetMachine.cpp
+++ b/lib/Target/Alpha/AlphaTargetMachine.cpp
@@ -79,7 +79,9 @@ bool AlphaTargetMachine::addPassesToEmitFile(PassManager &PM,
if (FileType != TargetMachine::AssemblyFile) return true;
PM.add(createLoopStrengthReducePass());
+ PM.add(createCFGSimplificationPass());
+
// FIXME: Implement efficient support for garbage collection intrinsics.
PM.add(createLowerGCPass());
@@ -92,8 +94,6 @@ bool AlphaTargetMachine::addPassesToEmitFile(PassManager &PM,
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());
- PM.add(createCFGSimplificationPass());
-
if (EnableAlphaDAG)
PM.add(createAlphaISelDag(*this));
else