diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-02-17 19:13:53 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-02-17 19:13:53 +0000 |
commit | 034a80d065358b412cdd270e08fb6f1986e65e50 (patch) | |
tree | 38ae1b1272028e5da2a08b93cbc6e2590707118e /lib/CodeGen/SplitKit.h | |
parent | 64849ce66fd01b5da5b59ea987770283a6ba48b1 (diff) | |
download | llvm-034a80d065358b412cdd270e08fb6f1986e65e50.tar.gz llvm-034a80d065358b412cdd270e08fb6f1986e65e50.tar.bz2 llvm-034a80d065358b412cdd270e08fb6f1986e65e50.tar.xz |
Split local live ranges.
A local live range is live in a single basic block. If such a range fails to
allocate, try to find a sub-range that would get a larger spill weight than its
interference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125764 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.h')
-rw-r--r-- | lib/CodeGen/SplitKit.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h index b503f04a80..6f771b6552 100644 --- a/lib/CodeGen/SplitKit.h +++ b/lib/CodeGen/SplitKit.h @@ -116,6 +116,9 @@ public: /// new interval. void clear(); + /// getParent - Return the last analyzed interval. + const LiveInterval &getParent() const { return *CurLI; } + /// hasUses - Return true if MBB has any uses of CurLI. bool hasUses(const MachineBasicBlock *MBB) const { return UsingBlocks.lookup(MBB); |