aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Sparc/SparcTargetMachine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-23 07:20:15 +0000
committerChris Lattner <sabre@nondot.org>2006-01-23 07:20:15 +0000
commitbb978c7e98371cd253d6af4a2ba0b8cacdbd0aff (patch)
tree434241edb8d832b8c993fca8d0196aba2d8a69a1 /lib/Target/Sparc/SparcTargetMachine.cpp
parent2c6d99cbf8e54f9bbc1e0aec51e27b88ae425d4b (diff)
downloadexternal_llvm-bb978c7e98371cd253d6af4a2ba0b8cacdbd0aff.zip
external_llvm-bb978c7e98371cd253d6af4a2ba0b8cacdbd0aff.tar.gz
external_llvm-bb978c7e98371cd253d6af4a2ba0b8cacdbd0aff.tar.bz2
remove the V8 simple isel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/SparcTargetMachine.cpp')
-rw-r--r--lib/Target/Sparc/SparcTargetMachine.cpp20
1 files changed, 4 insertions, 16 deletions
diff --git a/lib/Target/Sparc/SparcTargetMachine.cpp b/lib/Target/Sparc/SparcTargetMachine.cpp
index 08e38fc..83cd308 100644
--- a/lib/Target/Sparc/SparcTargetMachine.cpp
+++ b/lib/Target/Sparc/SparcTargetMachine.cpp
@@ -27,10 +27,6 @@ using namespace llvm;
namespace {
// Register the target.
RegisterTarget<SparcV8TargetMachine> X("sparcv8"," SPARC V8 (experimental)");
-
- cl::opt<bool> EnableV8DAGDAG("enable-v8-dag-isel", cl::Hidden,
- cl::desc("Enable DAG-to-DAG isel for V8"),
- cl::init(0));
}
/// SparcV8TargetMachine ctor - Create an ILP32 architecture model
@@ -83,18 +79,10 @@ bool SparcV8TargetMachine::addPassesToEmitFile(PassManager &PM,
if (PrintMachineCode)
PM.add(new PrintFunctionPass());
- if (!EnableV8DAGDAG) {
- // Replace malloc and free instructions with library calls.
- PM.add(createLowerAllocationsPass());
- PM.add(createLowerSelectPass());
- // Make sure that no unreachable blocks are instruction selected.
- PM.add(createUnreachableBlockEliminationPass());
- PM.add(createSparcV8SimpleInstructionSelector(*this));
- } else {
- // Make sure that no unreachable blocks are instruction selected.
- PM.add(createUnreachableBlockEliminationPass());
- PM.add(createSparcV8ISelDag(*this));
- }
+ // Make sure that no unreachable blocks are instruction selected.
+ PM.add(createUnreachableBlockEliminationPass());
+
+ PM.add(createSparcV8ISelDag(*this));
// Print machine instructions as they were initially generated.
if (PrintMachineCode)