projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Formatting - no functional change.
[oota-llvm.git]
/
lib
/
CodeGen
/
StackSlotColoring.cpp
diff --git
a/lib/CodeGen/StackSlotColoring.cpp
b/lib/CodeGen/StackSlotColoring.cpp
index 1b5d41795cc2bed45148b54f1b142ab8f6824657..bc062835fb3e0b1da7167a9587fd47bcc3fb3ed0 100644
(file)
--- a/
lib/CodeGen/StackSlotColoring.cpp
+++ b/
lib/CodeGen/StackSlotColoring.cpp
@@
-66,7
+66,8
@@
namespace {
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<LiveStacks>();
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<LiveStacks>();
- AU.setPreservesAll();
+ AU.addPreservedID(MachineLoopInfoID);
+ AU.addPreservedID(MachineDominatorsID);
MachineFunctionPass::getAnalysisUsage(AU);
}
MachineFunctionPass::getAnalysisUsage(AU);
}
@@
-178,7
+179,7
@@
int StackSlotColoring::ColorSlot(LiveInterval *li) {
// Record the assignment.
Assignments[Color].push_back(li);
int FI = li->getStackSlotIndex();
// 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
// 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);
MachineInstr &MI = *MII;
for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) {
MachineOperand &MO = MI.getOperand(i);
- if (!MO.isF
rameIndex
())
+ if (!MO.isF
I
())
continue;
int FI = MO.getIndex();
if (FI < 0)
continue;
int FI = MO.getIndex();
if (FI < 0)
@@
-234,7
+235,7
@@
bool StackSlotColoring::ColorSlots(MachineFunction &MF) {
// Delete unused stack slots.
while (NextColor != -1) {
// 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);
}
MFI->RemoveStackObject(NextColor);
NextColor = AllColors.find_next(NextColor);
}