From 9e14603dfeba1fc1d54f2373de20eea7469ee0c3 Mon Sep 17 00:00:00 2001 From: Bin Cheng Date: Tue, 23 Apr 2019 03:54:59 +0000 Subject: 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 --- gcc/tree-data-ref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/tree-data-ref.c') diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index 51da181..ccb1cfc 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -4431,7 +4431,7 @@ add_other_self_distances (struct data_dependence_relation *ddr) if (TREE_CODE (access_fun) == POLYNOMIAL_CHREC) { - if (!evolution_function_is_univariate_p (access_fun)) + if (!evolution_function_is_univariate_p (access_fun, loop->num)) { if (DDR_NUM_SUBSCRIPTS (ddr) != 1) { -- cgit v1.1