diff options
author | Sebastian Pop <pop@cri.ensmp.fr> | 2005-04-21 10:48:55 +0200 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2005-04-21 08:48:55 +0000 |
commit | 2412d35ca6436f9c36251b46e765759d36f908ab (patch) | |
tree | f3f2b4031060687272842eac011220d90325c975 /gcc/tree-scalar-evolution.c | |
parent | e6db622515f2ab2ae19b15efddf5a9067e35a78e (diff) | |
download | gcc-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-scalar-evolution.c')
-rw-r--r-- | gcc/tree-scalar-evolution.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c index e7c7545..ca80893 100644 --- a/gcc/tree-scalar-evolution.c +++ b/gcc/tree-scalar-evolution.c @@ -2582,7 +2582,7 @@ simple_iv (struct loop *loop, tree stmt, tree op, tree *base, tree *step) if (TREE_CODE (*step) != INTEGER_CST) return false; *base = CHREC_LEFT (ev); - if (tree_contains_chrecs (*base) + if (tree_contains_chrecs (*base, NULL) || chrec_contains_symbols_defined_in_loop (*base, loop->num)) return false; |