Register scavenging is now on by default for ARM.

llvm-svn: 34987
This commit is contained in:
Evan Cheng 2007-03-06 22:02:53 +00:00
parent 41bc2fd242
commit 5ed781b0db
1 changed files with 4 additions and 3 deletions

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