mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
Prevent instructions using $gp from being placed between a jalr and the instruction that restores the clobbered $gp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130847 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -76,6 +76,12 @@ addPreEmitPass(PassManagerBase &PM, CodeGenOpt::Level OptLevel)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MipsTargetMachine::
|
||||
addPreRegAlloc(PassManagerBase &PM, CodeGenOpt::Level OptLevel) {
|
||||
PM.add(createMipsEmitGPRestorePass(*this));
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MipsTargetMachine::
|
||||
addPostRegAlloc(PassManagerBase &PM, CodeGenOpt::Level OptLevel) {
|
||||
PM.add(createMipsExpandPseudoPass(*this));
|
||||
|
Reference in New Issue
Block a user