mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
mi-sched: update PressureDiffs on-the-fly for liveness.
This removes all expensive pressure tracking logic from the scheduling critical path of node comparison. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189643 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -296,6 +296,12 @@ namespace llvm {
|
||||
return r != end() && r->end.getBaseIndex() == BaseIdx;
|
||||
}
|
||||
|
||||
/// Return true if a live range starts at the instruction at this index.
|
||||
bool isDefinedByInstr(SlotIndex index) const {
|
||||
const_iterator r = find(index.getDeadSlot());
|
||||
return r != end() && r->end.getBaseIndex() == index.getBaseIndex();
|
||||
}
|
||||
|
||||
/// getLiveRangeContaining - Return the live range that contains the
|
||||
/// specified index, or null if there is none.
|
||||
const LiveRange *getLiveRangeContaining(SlotIndex Idx) const {
|
||||
|
Reference in New Issue
Block a user