Fix a nasty typo that broke functions with big stack frames.
authorChris Lattner <sabre@nondot.org>
Sat, 4 Feb 2006 08:04:21 +0000 (08:04 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 4 Feb 2006 08:04:21 +0000 (08:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25966 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcRegisterInfo.cpp
lib/Target/SparcV8/SparcV8RegisterInfo.cpp

index abbf11f06b4e54ffadb9720c4d07b36a2f26384c..a76111ab25483d0a770faf62f376b7b4481e5bcb 100644 (file)
@@ -145,7 +145,7 @@ SparcV8RegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II) const {
     BuildMI(*MI.getParent(), II, V8::ADDrr, 2, 
             V8::G1).addReg(V8::G1).addReg(V8::I6);
     // Insert: G1+%lo(offset) into the user.
-    MI.SetMachineOperandReg(i, V8::I1);
+    MI.SetMachineOperandReg(i, V8::G1);
     MI.SetMachineOperandConst(i+1, MachineOperand::MO_SignExtendedImmed,
                               Offset & ((1 << 10)-1));
   }
index abbf11f06b4e54ffadb9720c4d07b36a2f26384c..a76111ab25483d0a770faf62f376b7b4481e5bcb 100644 (file)
@@ -145,7 +145,7 @@ SparcV8RegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II) const {
     BuildMI(*MI.getParent(), II, V8::ADDrr, 2, 
             V8::G1).addReg(V8::G1).addReg(V8::I6);
     // Insert: G1+%lo(offset) into the user.
-    MI.SetMachineOperandReg(i, V8::I1);
+    MI.SetMachineOperandReg(i, V8::G1);
     MI.SetMachineOperandConst(i+1, MachineOperand::MO_SignExtendedImmed,
                               Offset & ((1 << 10)-1));
   }