[llvm-commits] CVS: llvm/lib/Target/ARM/ARMRegisterInfo.cpp

Evan Cheng evan.cheng at apple.com
Tue Mar 6 14:03:11 PST 2007



Changes in directory llvm/lib/Target/ARM:

ARMRegisterInfo.cpp updated: 1.80 -> 1.81
---
Log message:

Register scavenging is now on by default for ARM.

---
Diffs of the changes:  (+4 -3)

 ARMRegisterInfo.cpp |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/ARM/ARMRegisterInfo.cpp
diff -u llvm/lib/Target/ARM/ARMRegisterInfo.cpp:1.80 llvm/lib/Target/ARM/ARMRegisterInfo.cpp:1.81
--- llvm/lib/Target/ARM/ARMRegisterInfo.cpp:1.80	Tue Mar  6 04:03:56 2007
+++ llvm/lib/Target/ARM/ARMRegisterInfo.cpp	Tue Mar  6 16:02:53 2007
@@ -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 @@
 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






More information about the llvm-commits mailing list