aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-05-18 15:36:09 +0000
committerDan Gohman <gohman@apple.com>2009-05-18 15:36:09 +0000
commitab157b247e2e3089c4c3727cc2993c14bf8ab6ed (patch)
treeff62a31ebe98ed44b0e664bbbc8489b486f40fba /include/llvm/Analysis
parentf8bc8e8ad3c5c50822ff96ce811629ff35026e3f (diff)
downloadexternal_llvm-ab157b247e2e3089c4c3727cc2993c14bf8ab6ed.zip
external_llvm-ab157b247e2e3089c4c3727cc2993c14bf8ab6ed.tar.gz
external_llvm-ab157b247e2e3089c4c3727cc2993c14bf8ab6ed.tar.bz2
Make ScalarEvolution::isLoopGuardedByCond work even when the edge
entering a loop is a non-split critical edge. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72004 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r--include/llvm/Analysis/ScalarEvolution.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h
index a5534e8..d43d244 100644
--- a/include/llvm/Analysis/ScalarEvolution.h
+++ b/include/llvm/Analysis/ScalarEvolution.h
@@ -341,6 +341,10 @@ namespace llvm {
BackedgeTakenInfo HowManyLessThans(const SCEV *LHS, const SCEV *RHS,
const Loop *L, bool isSigned);
+ /// getLoopPredecessor - If the given loop's header has exactly one unique
+ /// predecessor outside the loop, return it. Otherwise return null.
+ BasicBlock *getLoopPredecessor(const Loop *L);
+
/// getPredecessorWithUniqueSuccessorForBB - Return a predecessor of BB
/// (which may not be an immediate predecessor) which has exactly one
/// successor from which BB is reachable, or null if no such block is