aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-11-05 19:21:41 +0000
committerDan Gohman <gohman@apple.com>2009-11-05 19:21:41 +0000
commitf17e9511f15a0e007ff47d0789d1a52502e8c1fb (patch)
tree306d9b4c3d0fbc314e0dad22a2b0137bb4eb5498 /include
parentb5b10c25f72f983f5876c0091cc98be36a6a3f0a (diff)
downloadexternal_llvm-f17e9511f15a0e007ff47d0789d1a52502e8c1fb.zip
external_llvm-f17e9511f15a0e007ff47d0789d1a52502e8c1fb.tar.gz
external_llvm-f17e9511f15a0e007ff47d0789d1a52502e8c1fb.tar.bz2
Factor out the predicate code for loopsimplify form exit blocks into
a separate helper function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/LoopInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h
index bc87adb..ac565c7 100644
--- a/include/llvm/Analysis/LoopInfo.h
+++ b/include/llvm/Analysis/LoopInfo.h
@@ -572,6 +572,10 @@ public:
/// normal form.
bool isLoopSimplifyForm() const;
+ /// hasDedicatedExits - Return true if no exit block for the loop
+ /// has a predecessor that is outside the loop.
+ bool hasDedicatedExits() const;
+
/// getUniqueExitBlocks - Return all unique successor blocks of this loop.
/// These are the blocks _outside of the current loop_ which are branched to.
/// This assumes that loop is in canonical form.