aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-11 22:16:48 +0000
committerDan Gohman <gohman@apple.com>2010-04-11 22:16:48 +0000
commit53c66eacc417c0113fba7159487b90005dc8f91e (patch)
treeaf9ec08234304171d66ba109eca4df88bb777670 /include
parentb64cf896f8c6648b2c2bce15107d2892b909f367 (diff)
downloadexternal_llvm-53c66eacc417c0113fba7159487b90005dc8f91e.zip
external_llvm-53c66eacc417c0113fba7159487b90005dc8f91e.tar.gz
external_llvm-53c66eacc417c0113fba7159487b90005dc8f91e.tar.bz2
Enhance ScalarEvolution::isKnownPredicate with support for
loop conditions which are invariants. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100995 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/ScalarEvolution.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h
index a486cee..c1f39ad 100644
--- a/include/llvm/Analysis/ScalarEvolution.h
+++ b/include/llvm/Analysis/ScalarEvolution.h
@@ -380,6 +380,13 @@ namespace llvm {
Constant *getConstantEvolutionLoopExitValue(PHINode *PN, const APInt& BEs,
const Loop *L);
+ /// isKnownPredicateWithRanges - Test if the given expression is known to
+ /// satisfy the condition described by Pred and the known constant ranges
+ /// of LHS and RHS.
+ ///
+ bool isKnownPredicateWithRanges(ICmpInst::Predicate Pred,
+ const SCEV *LHS, const SCEV *RHS);
+
public:
static char ID; // Pass identification, replacement for typeid
ScalarEvolution();