aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineLoopRanges.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-17 23:16:32 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-17 23:16:32 +0000
commitf428eb6c1b09a2322b7a577b0bf2e49dd107bcea (patch)
treed93e25f0feabc5f05b00b7823a4e3a64920a0c3d /include/llvm/CodeGen/MachineLoopRanges.h
parent9a3dc552022e0e034ef34da889f6ceb9de260c96 (diff)
Enable loop splitting in RegAllocGreedy.
The heuristics split around the largest loop where the current register may be allocated without interference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineLoopRanges.h')
-rw-r--r--include/llvm/CodeGen/MachineLoopRanges.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineLoopRanges.h b/include/llvm/CodeGen/MachineLoopRanges.h
index 3f2f24194a..6a30e8b53c 100644
--- a/include/llvm/CodeGen/MachineLoopRanges.h
+++ b/include/llvm/CodeGen/MachineLoopRanges.h
@@ -49,6 +49,9 @@ private:
MachineLoopRange(const MachineLoop*, Allocator&, SlotIndexes&);
public:
+ /// getLoop - Return the mapped machine loop.
+ const MachineLoop *getLoop() const { return Loop; }
+
/// overlaps - Return true if this loop overlaps the given range of machine
/// inteructions.
bool overlaps(SlotIndex Start, SlotIndex Stop);