[llvm] r177920 - Couple more sets of tidying.
Eric Christopher
echristo at gmail.com
Mon Mar 25 14:26:37 PDT 2013
Author: echristo
Date: Mon Mar 25 16:26:36 2013
New Revision: 177920
URL: http://llvm.org/viewvc/llvm-project?rev=177920&view=rev
Log:
Couple more sets of tidying.
Modified:
llvm/trunk/lib/CodeGen/StackColoring.cpp
Modified: llvm/trunk/lib/CodeGen/StackColoring.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/StackColoring.cpp?rev=177920&r1=177919&r2=177920&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/StackColoring.cpp (original)
+++ llvm/trunk/lib/CodeGen/StackColoring.cpp Mon Mar 25 16:26:36 2013
@@ -577,7 +577,7 @@ void StackColoring::remapInstructions(De
SlotIndex Index = Indexes->getInstructionIndex(I);
LiveInterval *Interval = Intervals[FromSlot];
assert(Interval->find(Index) != Interval->end() &&
- "Found instruction usage outside of live range.");
+ "Found instruction usage outside of live range.");
}
#endif
@@ -741,9 +741,9 @@ bool StackColoring::runOnMachineFunction
std::stable_sort(SortedSlots.begin(), SortedSlots.end(),
SlotSizeSorter(MFI));
- bool Chanded = true;
- while (Chanded) {
- Chanded = false;
+ bool Changed = true;
+ while (Changed) {
+ Changed = false;
for (unsigned I = 0; I < NumSlots; ++I) {
if (SortedSlots[I] == -1)
continue;
@@ -760,7 +760,7 @@ bool StackColoring::runOnMachineFunction
// Merge disjoint slots.
if (!First->overlaps(*Second)) {
- Chanded = true;
+ Changed = true;
First->MergeRangesInAsValue(*Second, First->getValNumInfo(0));
SlotRemap[SecondSlot] = FirstSlot;
SortedSlots[J] = -1;
More information about the llvm-commits
mailing list