Ok get rid of the REST of the tabs

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15564 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-08-07 07:18:41 +00:00
parent d555da52f4
commit ecf8afdc20

View File

@ -139,10 +139,10 @@ void PEI::saveCallerSavedRegisters(MachineFunction &Fn) {
} else { } else {
for (const unsigned *AliasSet = RegInfo->getAliasSet(Reg); for (const unsigned *AliasSet = RegInfo->getAliasSet(Reg);
*AliasSet; ++AliasSet) { // Check alias registers too... *AliasSet; ++AliasSet) { // Check alias registers too...
if (ModifiedRegs[*AliasSet]) { if (ModifiedRegs[*AliasSet]) {
RegsToSave.push_back(Reg); RegsToSave.push_back(Reg);
break; break;
} }
} }
} }
} }
@ -178,9 +178,9 @@ void PEI::saveCallerSavedRegisters(MachineFunction &Fn) {
I = MBB->end(); --I; I = MBB->end(); --I;
for (unsigned i = 0, e = RegsToSave.size(); i != e; ++i) { for (unsigned i = 0, e = RegsToSave.size(); i != e; ++i) {
const TargetRegisterClass *RC = RegInfo->getRegClass(RegsToSave[i]); const TargetRegisterClass *RC = RegInfo->getRegClass(RegsToSave[i]);
RegInfo->loadRegFromStackSlot(*MBB, I, RegsToSave[i],StackSlots[i], RC); RegInfo->loadRegFromStackSlot(*MBB, I, RegsToSave[i],StackSlots[i], RC);
--I; // Insert in reverse order --I; // Insert in reverse order
} }
} }
} }
@ -291,10 +291,10 @@ void PEI::replaceFrameIndices(MachineFunction &Fn) {
for (MachineFunction::iterator BB = Fn.begin(), E = Fn.end(); BB != E; ++BB) for (MachineFunction::iterator BB = Fn.begin(), E = Fn.end(); BB != E; ++BB)
for (MachineBasicBlock::iterator I = BB->begin(); I != BB->end(); ++I) for (MachineBasicBlock::iterator I = BB->begin(); I != BB->end(); ++I)
for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i) for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i)
if (I->getOperand(i).isFrameIndex()) { if (I->getOperand(i).isFrameIndex()) {
// If this instruction has a FrameIndex operand, we need to use that // If this instruction has a FrameIndex operand, we need to use that
// target machine register info object to eliminate it. // target machine register info object to eliminate it.
MRI.eliminateFrameIndex(Fn, I); MRI.eliminateFrameIndex(Fn, I);
break; break;
} }
} }