summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SplitKit.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-15 17:49:52 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-15 17:49:52 +0000
commit28e769cc5469d50715fb241dc2d89cf24ff7a557 (patch)
tree8a2732f5a91ec96d224c8ad4ae69cd60d3bee60c /llvm/lib/CodeGen/SplitKit.h
parent4391f34abad97e505bfb8964cdf22575e0a72dbb (diff)
downloadbcm5719-llvm-28e769cc5469d50715fb241dc2d89cf24ff7a557.tar.gz
bcm5719-llvm-28e769cc5469d50715fb241dc2d89cf24ff7a557.zip
Detect and enumerate bypass loops.
Bypass loops have the current live range live through, but contain no uses or defs. Splitting around a bypass loop can free registers for other uses inside the loop by spilling the split range. llvm-svn: 121871
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.h')
-rw-r--r--llvm/lib/CodeGen/SplitKit.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.h b/llvm/lib/CodeGen/SplitKit.h
index f290eb64610..0930b3974cd 100644
--- a/llvm/lib/CodeGen/SplitKit.h
+++ b/llvm/lib/CodeGen/SplitKit.h
@@ -141,6 +141,15 @@ public:
/// separate register, or NULL.
const MachineLoop *getBestSplitLoop();
+ /// isBypassLoop - Return true if curli is live through Loop and has no uses
+ /// inside the loop. Bypass loops are candidates for splitting because it can
+ /// prevent interference inside the loop.
+ bool isBypassLoop(const MachineLoop *Loop);
+
+ /// getBypassLoops - Get all the maximal bypass loops. These are the bypass
+ /// loops whose parent is not a bypass loop.
+ void getBypassLoops(LoopPtrSet&);
+
/// getMultiUseBlocks - Add basic blocks to Blocks that may benefit from
/// having curli split to a new live interval. Return true if Blocks can be
/// passed to SplitEditor::splitSingleBlocks.
OpenPOWER on IntegriCloud