mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-09 05:31:19 +00:00
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:
parent
a90f3408b3
commit
e6257632fc
@ -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
Block a user