diff options
author | Bin Cheng <bin.cheng@linux.alibaba.com> | 2019-04-23 03:54:59 +0000 |
---|---|---|
committer | Bin Cheng <amker@gcc.gnu.org> | 2019-04-23 03:54:59 +0000 |
commit | 9e14603dfeba1fc1d54f2373de20eea7469ee0c3 (patch) | |
tree | f859612eaba12970593f1be51bca49c98d577ba7 /gcc/tree-chrec.h | |
parent | 6e8fc175bda51464ac124fcf20df62fd19801203 (diff) |
re PR tree-optimization/90021 (ICE in index_in_loop_nest, at tree-data-ref.h:587 since r270203)
PR tree-optimization/92001
* tree-chrec.c (evolution_function_is_univariate_p): New parameter
and check univariate against it.
* tree-chrec.h (evolution_function_is_univariate_p): New parameter.
* tree-data-ref.c (add_other_self_distances): Pass new argument.
gcc/testsuite
* gcc/testsuite/gfortran.dg/pr90021.f90: New test.
From-SVN: r270499
Diffstat (limited to 'gcc/tree-chrec.h')
-rw-r--r-- | gcc/tree-chrec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-chrec.h b/gcc/tree-chrec.h index 258b5d53f8b..dbbc1b182ac 100644 --- a/gcc/tree-chrec.h +++ b/gcc/tree-chrec.h @@ -85,7 +85,7 @@ extern bool chrec_contains_symbols_defined_in_loop (const_tree, unsigned); extern bool chrec_contains_undetermined (const_tree); extern bool tree_contains_chrecs (const_tree, int *); extern bool evolution_function_is_affine_multivariate_p (const_tree, int); -extern bool evolution_function_is_univariate_p (const_tree); +extern bool evolution_function_is_univariate_p (const_tree, int = 0); extern unsigned nb_vars_in_chrec (tree); extern bool evolution_function_is_invariant_p (tree, int); extern bool scev_is_linear_expression (tree); |