[llvm-commits] [llvm] r156693 - /llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
Akira Hatanaka
ahatanaka at mips.com
Fri May 11 20:19:51 PDT 2012
Author: ahatanak
Date: Fri May 11 22:19:51 2012
New Revision: 156693
URL: http://llvm.org/viewvc/llvm-project?rev=156693&view=rev
Log:
Do not add the pass which restores $gp after every function call.
Modified:
llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp?rev=156693&r1=156692&r2=156693&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp Fri May 11 22:19:51 2012
@@ -105,7 +105,6 @@
}
virtual bool addInstSelector();
- virtual bool addPreRegAlloc();
virtual bool addPreSched2();
virtual bool addPreEmitPass();
};
@@ -130,14 +129,6 @@
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;
More information about the llvm-commits
mailing list