forked from OSchip/llvm-project
Run memsel inserter just before emit assembly to avoid tinkering by other passes.
llvm-svn: 78369
This commit is contained in:
parent
b57430d698
commit
003dc1fa5b
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue