diff options
| author | Dan Gohman <gohman@apple.com> | 2009-11-05 19:21:41 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-11-05 19:21:41 +0000 |
| commit | f17e9511f15a0e007ff47d0789d1a52502e8c1fb (patch) | |
| tree | 306d9b4c3d0fbc314e0dad22a2b0137bb4eb5498 /include | |
| parent | b5b10c25f72f983f5876c0091cc98be36a6a3f0a (diff) | |
| download | external_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.h | 4 |
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. |
