aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-data-ref.c
diff options
context:
space:
mode:
authorBin Cheng <bin.cheng@linux.alibaba.com>2019-04-23 03:54:59 +0000
committerBin Cheng <amker@gcc.gnu.org>2019-04-23 03:54:59 +0000
commit9e14603dfeba1fc1d54f2373de20eea7469ee0c3 (patch)
treef859612eaba12970593f1be51bca49c98d577ba7 /gcc/tree-data-ref.c
parent6e8fc175bda51464ac124fcf20df62fd19801203 (diff)
downloadgcc-9e14603dfeba1fc1d54f2373de20eea7469ee0c3.zip
gcc-9e14603dfeba1fc1d54f2373de20eea7469ee0c3.tar.gz
gcc-9e14603dfeba1fc1d54f2373de20eea7469ee0c3.tar.bz2
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-data-ref.c')
-rw-r--r--gcc/tree-data-ref.c2
1 files changed, 1 insertions, 1 deletions
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)
{