tree-data-ref.c (add_multivariate_self_dist): Parametric access functions cannot be represented as classical distance vectors.

* tree-data-ref.c (add_multivariate_self_dist): Parametric access
	functions cannot be represented as classical distance vectors.

From-SVN: r127041
This commit is contained in:
Sebastian Pop 2007-07-29 10:41:23 +00:00
parent 5a2197e9be
commit b1e759547f
2 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2007-07-29 Sebastian Pop <sebpop@gmail.com>
* tree-data-ref.c (add_multivariate_self_dist): Parametric access
functions cannot be represented as classical distance vectors.
2007-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* attribs.c (hash_attr, eq_attr, init_attributes): Constify.
@ -1010,7 +1015,7 @@
(reg_save_code, reg_restore_code): New functions.
(init_caller_save): Do not intialize
reg_save_code/reg_restore_code tables.
* Makeifle.in: (gt-caller-save.h): New.
* Makefile.in: (gt-caller-save.h): New.
2007-07-24 Andreas Krebbel <krebbel1@de.ibm.com>

View File

@ -2809,10 +2809,14 @@ add_multivariate_self_dist (struct data_dependence_relation *ddr, tree c_2)
lambda_vector dist_v;
int v1, v2, cd;
/* Polynomials with more than 2 variables are not handled yet. */
if (TREE_CODE (c_0) != INTEGER_CST)
/* Polynomials with more than 2 variables are not handled yet. When
the evolution steps are parameters, it is not possible to
represent the dependence using classical distance vectors. */
if (TREE_CODE (c_0) != INTEGER_CST
|| TREE_CODE (CHREC_RIGHT (c_1)) != INTEGER_CST
|| TREE_CODE (CHREC_RIGHT (c_2)) != INTEGER_CST)
{
DDR_ARE_DEPENDENT (ddr) = chrec_dont_know;
DDR_AFFINE_P (ddr) = false;
return;
}