diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-05-12 03:19:51 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-05-12 03:19:51 +0000 |
commit | acf411bd4c1b887c6c4f13d0d82164d32caddce3 (patch) | |
tree | 8fcb21b45192c9288565ab0f4aaff1261a6a1587 /lib/Target/Mips/MipsTargetMachine.cpp | |
parent | 92d4aec5737cf81f08059bbc5c18f39d8c16c429 (diff) |
Do not add the pass which restores $gp after every function call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156693 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsTargetMachine.cpp')
-rw-r--r-- | lib/Target/Mips/MipsTargetMachine.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Target/Mips/MipsTargetMachine.cpp b/lib/Target/Mips/MipsTargetMachine.cpp index 858723bad9..1e6e852726 100644 --- a/lib/Target/Mips/MipsTargetMachine.cpp +++ b/lib/Target/Mips/MipsTargetMachine.cpp @@ -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; |