llvm.org GIT mirror llvm / e625763
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 Evan Cheng 13 years ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3535 #include
3636 using namespace llvm;
3737
38 static cl::opt EnableScavenging("enable-arm-reg-scavenging", cl::Hidden,
39 cl::desc("Enable register scavenging on ARM"));
38 static cl::opt ThumbRegScavenging("enable-thumb-reg-scavenging",
39 cl::Hidden,
40 cl::desc("Enable register scavenging on Thumb"));
4041
4142 unsigned ARMRegisterInfo::getRegisterNumbering(unsigned RegEnum) {
4243 using namespace ARM;
344345 bool
345346 ARMRegisterInfo::requiresRegisterScavenging(const MachineFunction &MF) const {
346347 const ARMFunctionInfo *AFI = MF.getInfo();
347 return EnableScavenging && !AFI->isThumbFunction();
348 return ThumbRegScavenging || !AFI->isThumbFunction();
348349 }
349350
350351 /// hasFP - Return true if the specified function should have a dedicated frame