forked from OSchip/llvm-project
Register scavenging is now on by default for ARM.
llvm-svn: 34987
This commit is contained in:
parent
41bc2fd242
commit
5ed781b0db
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue