aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9/SparcV9TargetMachine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-04 20:03:43 +0000
committerChris Lattner <sabre@nondot.org>2002-02-04 20:03:43 +0000
commit5ff562e2c08a719c4f4f5280bff2da88fc9d5e8c (patch)
treeadfe79ba01411a4dce1f67ba1dd42c71f9806bcd /lib/Target/SparcV9/SparcV9TargetMachine.cpp
parent4d7fc119b8e717f221a4efaac79214b2d20d2ed1 (diff)
downloadexternal_llvm-5ff562e2c08a719c4f4f5280bff2da88fc9d5e8c.zip
external_llvm-5ff562e2c08a719c4f4f5280bff2da88fc9d5e8c.tar.gz
external_llvm-5ff562e2c08a719c4f4f5280bff2da88fc9d5e8c.tar.bz2
The interface to instruction scheduling is now just a call to get the pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1702 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/SparcV9TargetMachine.cpp')
-rw-r--r--lib/Target/SparcV9/SparcV9TargetMachine.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index 91e51d8..422dda0 100644
--- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp
+++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
@@ -223,17 +223,6 @@ public:
}
};
-class InstructionScheduling : public MethodPass {
- TargetMachine &Target;
-public:
- inline InstructionScheduling(TargetMachine &T) : Target(T) {}
- bool runOnMethod(Method *M) {
- if (ScheduleInstructionsWithSSA(M, Target))
- cerr << "Instr scheduling failed for method " << M->getName() << "\n\n";
- return false;
- }
-};
-
struct FreeMachineCodeForMethod : public MethodPass {
static void freeMachineCode(Instruction *I) {
MachineCodeForInstruction::destroy(I);
@@ -258,7 +247,7 @@ void UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) {
PM.add(new InstructionSelection(*this));
- //PM.add(new InstructionScheduling(*this));
+ //PM.add(createInstructionSchedulingWithSSAPass(*this));
PM.add(getRegisterAllocator(*this));