summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SplitKit.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-15 17:41:19 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-15 17:41:19 +0000
commit521a453721aeefbb6783b6acc8ea36b3c18b4931 (patch)
tree51fc94714732cdbe7e9e2a08f500ca43772a5ae8 /lib/CodeGen/SplitKit.h
parent333f5194cbffd98c30667d2a70df210bae06d220 (diff)
downloadllvm-521a453721aeefbb6783b6acc8ea36b3c18b4931.tar.gz
llvm-521a453721aeefbb6783b6acc8ea36b3c18b4931.tar.bz2
llvm-521a453721aeefbb6783b6acc8ea36b3c18b4931.tar.xz
Separate SplitAnalysis::getSplitLoops().
This method returns the set of loops with uses that are candidates for splitting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121870 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.h')
-rw-r--r--lib/CodeGen/SplitKit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h
index b1d5a47804..f290eb6461 100644
--- a/lib/CodeGen/SplitKit.h
+++ b/lib/CodeGen/SplitKit.h
@@ -133,6 +133,10 @@ public:
/// these edges, but they do require special treatment.
void getCriticalPreds(const LoopBlocks &Blocks, BlockPtrSet &CriticalPreds);
+ /// getSplitLoops - Get the set of loops that have curli uses and would be
+ /// profitable to split.
+ void getSplitLoops(LoopPtrSet&);
+
/// getBestSplitLoop - Return the loop where curli may best be split to a
/// separate register, or NULL.
const MachineLoop *getBestSplitLoop();