diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-11-12 19:21:08 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-11-12 19:21:08 +0000 |
commit | ea2fdf93808b76fa14e41320b94b95b939b52244 (patch) | |
tree | e3dfa26a2ef8fea3d0b70d59f64f93d4e1152cb0 /lib/Target/Alpha/AlphaTargetMachine.cpp | |
parent | 6467dfa40dc6a64fc2d2ca32279727d4accb1bf8 (diff) |
enable LSR by default on alpha
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaTargetMachine.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaTargetMachine.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/Target/Alpha/AlphaTargetMachine.cpp b/lib/Target/Alpha/AlphaTargetMachine.cpp index f5bd484b0c..3ee13002a3 100644 --- a/lib/Target/Alpha/AlphaTargetMachine.cpp +++ b/lib/Target/Alpha/AlphaTargetMachine.cpp @@ -29,9 +29,6 @@ namespace { } namespace llvm { - cl::opt<bool> EnableAlphaLSR("enable-lsr-for-alpha", - cl::desc("Enable LSR for Alpha (beta option!)"), - cl::Hidden); cl::opt<bool> EnableAlphaDAG("enable-dag-isel-for-alpha", cl::desc("Enable DAG ISEL for Alpha (beta option!)"), cl::Hidden); @@ -81,10 +78,7 @@ bool AlphaTargetMachine::addPassesToEmitFile(PassManager &PM, bool Fast) { if (FileType != TargetMachine::AssemblyFile) return true; - if (EnableAlphaLSR) { - PM.add(createLoopStrengthReducePass()); - PM.add(createCFGSimplificationPass()); - } + PM.add(createLoopStrengthReducePass()); // FIXME: Implement efficient support for garbage collection intrinsics. PM.add(createLowerGCPass()); @@ -98,6 +92,8 @@ 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 |