Register scavenging is now on by default for ARM.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34987 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2007-03-06 22:02:53 +00:00
parent a90f3408b3
commit e6257632fc

View File

@ -36,8 +36,9 @@
#include <algorithm>
using namespace llvm;
static cl::opt<bool> EnableScavenging("enable-arm-reg-scavenging", cl::Hidden,
cl::desc("Enable register scavenging on ARM"));
static cl::opt<bool> ThumbRegScavenging("enable-thumb-reg-scavenging",
cl::Hidden,
cl::desc("Enable register scavenging on Thumb"));
unsigned ARMRegisterInfo::getRegisterNumbering(unsigned RegEnum) {
using namespace ARM;
@ -345,7 +346,7 @@ ARMRegisterInfo::isReservedReg(const MachineFunction &MF, unsigned Reg) const {
bool
ARMRegisterInfo::requiresRegisterScavenging(const MachineFunction &MF) const {
const ARMFunctionInfo *AFI = MF.getInfo<ARMFunctionInfo>();
return EnableScavenging && !AFI->isThumbFunction();
return ThumbRegScavenging || !AFI->isThumbFunction();
}
/// hasFP - Return true if the specified function should have a dedicated frame