mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Added methods to get the live range immediately before a given slot. Intended to parallel the getVNInfoBefore method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148453 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2faa5d2328
commit
c2220057c0
@ -405,6 +405,14 @@ namespace llvm {
|
|||||||
return I == end() ? 0 : &*I;
|
return I == end() ? 0 : &*I;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const LiveRange *getLiveRangeBefore(SlotIndex Idx) const {
|
||||||
|
return getLiveRangeContaining(Idx.getPrevSlot());
|
||||||
|
}
|
||||||
|
|
||||||
|
LiveRange *getLiveRangeBefore(SlotIndex Idx) {
|
||||||
|
return getLiveRangeContaining(Idx.getPrevSlot());
|
||||||
|
}
|
||||||
|
|
||||||
/// getVNInfoAt - Return the VNInfo that is live at Idx, or NULL.
|
/// getVNInfoAt - Return the VNInfo that is live at Idx, or NULL.
|
||||||
VNInfo *getVNInfoAt(SlotIndex Idx) const {
|
VNInfo *getVNInfoAt(SlotIndex Idx) const {
|
||||||
const_iterator I = FindLiveRangeContaining(Idx);
|
const_iterator I = FindLiveRangeContaining(Idx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user