mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 01:11:44 +00:00
Added methods to get the live range immediately before a given slot. Intended to parallel the getVNInfoBefore method.
llvm-svn: 148453
This commit is contained in:
parent
9888a01041
commit
059e79c753
@ -405,6 +405,14 @@ namespace llvm {
|
||||
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.
|
||||
VNInfo *getVNInfoAt(SlotIndex Idx) const {
|
||||
const_iterator I = FindLiveRangeContaining(Idx);
|
||||
|
Loading…
Reference in New Issue
Block a user