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

Evan Cheng evan.cheng at apple.com
Wed Feb 7 13:44:49 PST 2007



Changes in directory llvm/lib/Target/ARM:

ARMRegisterInfo.cpp updated: 1.65 -> 1.66
---
Log message:

isLowRegister() expects input is a physical register.

---
Diffs of the changes:  (+2 -2)

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


Index: llvm/lib/Target/ARM/ARMRegisterInfo.cpp
diff -u llvm/lib/Target/ARM/ARMRegisterInfo.cpp:1.65 llvm/lib/Target/ARM/ARMRegisterInfo.cpp:1.66
--- llvm/lib/Target/ARM/ARMRegisterInfo.cpp:1.65	Wed Feb  7 15:24:09 2007
+++ llvm/lib/Target/ARM/ARMRegisterInfo.cpp	Wed Feb  7 15:44:33 2007
@@ -218,14 +218,14 @@
   case ARM::tMOVrr: {
     if (OpNum == 0) { // move -> store
       unsigned SrcReg = MI->getOperand(1).getReg();
-      if (!isLowRegister(SrcReg))
+      if (isPhysicalRegister(SrcReg) && !isLowRegister(SrcReg))
         // tSpill cannot take a high register operand.
         break;
       NewMI = BuildMI(TII.get(ARM::tSpill)).addReg(SrcReg).addFrameIndex(FI)
         .addImm(0);
     } else {          // move -> load
       unsigned DstReg = MI->getOperand(0).getReg();
-      if (!isLowRegister(DstReg))
+      if (isPhysicalRegister(DstReg) && !isLowRegister(DstReg))
         // tRestore cannot target a high register operand.
         break;
       NewMI = BuildMI(TII.get(ARM::tRestore), DstReg).addFrameIndex(FI)






More information about the llvm-commits mailing list