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 | 93c8736abb6f86b202ce9bae510d07930ffab4de (patch) | |
tree | a75d56e380877d9fc205d67f9398b61d8f2ad8a1 /llvm/lib/CodeGen/SplitKit.h | |
parent | d6f8124c9c7ee85d30b09d2ae873cf4ab4c19baa (diff) | |
download | bcm5719-llvm-93c8736abb6f86b202ce9bae510d07930ffab4de.tar.gz bcm5719-llvm-93c8736abb6f86b202ce9bae510d07930ffab4de.zip |
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.
llvm-svn: 125764
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.h')
-rw-r--r-- | llvm/lib/CodeGen/SplitKit.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.h b/llvm/lib/CodeGen/SplitKit.h index b503f04a80d..6f771b65525 100644 --- a/llvm/lib/CodeGen/SplitKit.h +++ b/llvm/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); |