Run memsel inserter just before emit assembly to avoid tinkering by other passes.

llvm-svn: 78369
This commit is contained in:
Sanjiv Gupta 2009-08-07 05:44:27 +00:00
parent b57430d698
commit 003dc1fa5b
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ bool PIC16TargetMachine::addInstSelector(PassManagerBase &PM,
return false;
}
bool PIC16TargetMachine::addPostRegAlloc(PassManagerBase &PM,
bool PIC16TargetMachine::addPreEmitPass(PassManagerBase &PM,
CodeGenOpt::Level OptLevel) {
PM.add(createPIC16MemSelOptimizerPass());
return true; // -print-machineinstr should print after this.

View File

@ -59,7 +59,7 @@ public:
virtual bool addInstSelector(PassManagerBase &PM,
CodeGenOpt::Level OptLevel);
virtual bool addPostRegAlloc(PassManagerBase &PM, CodeGenOpt::Level OptLevel);
virtual bool addPreEmitPass(PassManagerBase &PM, CodeGenOpt::Level OptLevel);
}; // PIC16TargetMachine.
/// CooperTargetMachine