X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FCodeGen%2FStackSlotColoring.cpp;h=bc062835fb3e0b1da7167a9587fd47bcc3fb3ed0;hb=ef5b199905cee0b78eb30cd44836e5b6ca5cbd09;hp=1b5d41795cc2bed45148b54f1b142ab8f6824657;hpb=bbeeb2a61ea19fbb5449260165b56c40fdc4860b;p=oota-llvm.git diff --git a/lib/CodeGen/StackSlotColoring.cpp b/lib/CodeGen/StackSlotColoring.cpp index 1b5d41795cc..bc062835fb3 100644 --- a/lib/CodeGen/StackSlotColoring.cpp +++ b/lib/CodeGen/StackSlotColoring.cpp @@ -66,7 +66,8 @@ namespace { virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired(); - AU.setPreservesAll(); + AU.addPreservedID(MachineLoopInfoID); + AU.addPreservedID(MachineDominatorsID); MachineFunctionPass::getAnalysisUsage(AU); } @@ -178,7 +179,7 @@ int StackSlotColoring::ColorSlot(LiveInterval *li) { // Record the assignment. Assignments[Color].push_back(li); int FI = li->getStackSlotIndex(); - DOUT << "Assigning fi #" << FI << " to fi #" << Color << "\n"; + DOUT << "Assigning fi#" << FI << " to fi#" << Color << "\n"; // Change size and alignment of the allocated slot. If there are multiple // objects sharing the same slot, then make sure the size and alignment @@ -219,7 +220,7 @@ bool StackSlotColoring::ColorSlots(MachineFunction &MF) { MachineInstr &MI = *MII; for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) { MachineOperand &MO = MI.getOperand(i); - if (!MO.isFrameIndex()) + if (!MO.isFI()) continue; int FI = MO.getIndex(); if (FI < 0) @@ -234,7 +235,7 @@ bool StackSlotColoring::ColorSlots(MachineFunction &MF) { // Delete unused stack slots. while (NextColor != -1) { - DOUT << "Removing unused stack object fi #" << NextColor << "\n"; + DOUT << "Removing unused stack object fi#" << NextColor << "\n"; MFI->RemoveStackObject(NextColor); NextColor = AllColors.find_next(NextColor); }