mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Provide LiveIntervalUnion::Query::checkLoopInterference.
This is a three-way interval list intersection between a virtual register, a live interval union, and a loop. It will be used to identify interference-free loops for live range splitting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122034 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -69,13 +69,13 @@ MachineLoopRange::MachineLoopRange(const MachineLoop *loop,
|
||||
/// overlaps - Return true if this loop overlaps the given range of machine
|
||||
/// instructions.
|
||||
bool MachineLoopRange::overlaps(SlotIndex Start, SlotIndex Stop) {
|
||||
RangeMap::const_iterator I = Intervals.find(Start);
|
||||
Map::const_iterator I = Intervals.find(Start);
|
||||
return I.valid() && Stop > I.start();
|
||||
}
|
||||
|
||||
void MachineLoopRange::print(raw_ostream &OS) const {
|
||||
OS << "Loop#" << Loop->getHeader()->getNumber() << " =";
|
||||
for (RangeMap::const_iterator I = Intervals.begin(); I.valid(); ++I)
|
||||
for (Map::const_iterator I = Intervals.begin(); I.valid(); ++I)
|
||||
OS << " [" << I.start() << ';' << I.stop() << ')';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user