mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 15:19:33 +00:00
Do not add the pass which restores $gp after every function call.
llvm-svn: 156693
This commit is contained in:
parent
ae43b7da61
commit
94b61aa028
@ -105,7 +105,6 @@ public:
|
||||
}
|
||||
|
||||
virtual bool addInstSelector();
|
||||
virtual bool addPreRegAlloc();
|
||||
virtual bool addPreSched2();
|
||||
virtual bool addPreEmitPass();
|
||||
};
|
||||
@ -130,14 +129,6 @@ bool MipsPassConfig::addPreEmitPass() {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MipsPassConfig::addPreRegAlloc() {
|
||||
// Do not restore $gp if target is Mips64.
|
||||
// In N32/64, $gp is a callee-saved register.
|
||||
if (!getMipsSubtarget().hasMips64())
|
||||
PM->add(createMipsEmitGPRestorePass(getMipsTargetMachine()));
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MipsPassConfig::addPreSched2() {
|
||||
PM->add(createMipsExpandPseudoPass(getMipsTargetMachine()));
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user