mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Rename LiveRange to LiveInterval::Segment
The Segment struct contains a single interval; multiple instances of this struct are used to construct a live range, but the struct is not a live range by itself. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192392 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -450,14 +450,14 @@ void StackColoring::calculateLiveIntervals(unsigned NumSlots) {
|
||||
SlotIndex F = Finishes[i];
|
||||
if (S < F) {
|
||||
// We have a single consecutive region.
|
||||
Intervals[i]->addRange(LiveRange(S, F, ValNum));
|
||||
Intervals[i]->addSegment(LiveInterval::Segment(S, F, ValNum));
|
||||
} else {
|
||||
// We have two non consecutive regions. This happens when
|
||||
// LIFETIME_START appears after the LIFETIME_END marker.
|
||||
SlotIndex NewStart = Indexes->getMBBStartIdx(MBB);
|
||||
SlotIndex NewFin = Indexes->getMBBEndIdx(MBB);
|
||||
Intervals[i]->addRange(LiveRange(NewStart, F, ValNum));
|
||||
Intervals[i]->addRange(LiveRange(S, NewFin, ValNum));
|
||||
Intervals[i]->addSegment(LiveInterval::Segment(NewStart, F, ValNum));
|
||||
Intervals[i]->addSegment(LiveInterval::Segment(S, NewFin, ValNum));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -763,7 +763,7 @@ bool StackColoring::runOnMachineFunction(MachineFunction &Func) {
|
||||
// Merge disjoint slots.
|
||||
if (!First->overlaps(*Second)) {
|
||||
Changed = true;
|
||||
First->MergeRangesInAsValue(*Second, First->getValNumInfo(0));
|
||||
First->MergeSegmentsInAsValue(*Second, First->getValNumInfo(0));
|
||||
SlotRemap[SecondSlot] = FirstSlot;
|
||||
SortedSlots[J] = -1;
|
||||
DEBUG(dbgs()<<"Merging #"<<FirstSlot<<" and slots #"<<
|
||||
|
Reference in New Issue
Block a user