1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

The interface to instruction scheduling is now just a call to get the pass.

llvm-svn: 1702
This commit is contained in:
Chris Lattner 2002-02-04 20:03:43 +00:00
parent 817f1768d4
commit a576f85e4b

View File

@ -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));