aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-chrec.h
diff options
context:
space:
mode:
authorSebastian Pop <pop@cri.ensmp.fr>2005-04-21 10:48:55 +0200
committerSebastian Pop <spop@gcc.gnu.org>2005-04-21 08:48:55 +0000
commit2412d35ca6436f9c36251b46e765759d36f908ab (patch)
treef3f2b4031060687272842eac011220d90325c975 /gcc/tree-chrec.h
parente6db622515f2ab2ae19b15efddf5a9067e35a78e (diff)
downloadgcc-2412d35ca6436f9c36251b46e765759d36f908ab.zip
gcc-2412d35ca6436f9c36251b46e765759d36f908ab.tar.gz
gcc-2412d35ca6436f9c36251b46e765759d36f908ab.tar.bz2
Makefile.in (tree-chrec.o): Depend on params.h.
PR/20742 * Makefile.in (tree-chrec.o): Depend on params.h. * params.def (PARAM_SCEV_MAX_EXPR_SIZE): New parameter with default value 20. * tree-chrec.c: Depend on params.h. Replace build with buildN, and fold build with fold_buildN. (chrec_fold_plus_1): Fail with a chrec_don_know when the size of the expression exceeds PARAM_SCEV_MAX_EXPR_SIZE. (tree_contains_chrecs): Compute an estimation of the size of the given expression. * tree-chrec.h (tree_contains_chrecs): Modify its declaration. (tree_does_not_contain_chrecs): Update the use of tree_contains_chrecs. * tree-scalar-evolution.c (simple_iv): Ditto. * doc/invoke.texi (scev-max-expr-size): Documented. From-SVN: r98497
Diffstat (limited to 'gcc/tree-chrec.h')
-rw-r--r--gcc/tree-chrec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-chrec.h b/gcc/tree-chrec.h
index a3e2190..8f8c065 100644
--- a/gcc/tree-chrec.h
+++ b/gcc/tree-chrec.h
@@ -87,7 +87,7 @@ extern bool chrec_is_positive (tree, bool *);
extern bool chrec_contains_symbols (tree);
extern bool chrec_contains_symbols_defined_in_loop (tree, unsigned);
extern bool chrec_contains_undetermined (tree);
-extern bool tree_contains_chrecs (tree);
+extern bool tree_contains_chrecs (tree, int *);
extern bool evolution_function_is_affine_multivariate_p (tree);
extern bool evolution_function_is_univariate_p (tree);
extern unsigned nb_vars_in_chrec (tree);
@@ -183,7 +183,7 @@ evolution_function_is_affine_or_constant_p (tree chrec)
static inline bool
tree_does_not_contain_chrecs (tree expr)
{
- return !tree_contains_chrecs (expr);
+ return !tree_contains_chrecs (expr, NULL);
}
/* Determines whether CHREC is a loop invariant with respect to LOOP_NUM.