lambda-code.c (lambda_transform_legal_p): Handle the case of no dependences in the dependence_relations vector.
2008-01-16 Sebastian Pop <sebastian.pop@amd.com> * lambda-code.c (lambda_transform_legal_p): Handle the case of no dependences in the dependence_relations vector. From-SVN: r131577
This commit is contained in:
parent
a03c6d64f4
commit
d49c149d62
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
|
||||
|
||||
* lambda-code.c (lambda_transform_legal_p): Handle the case of
|
||||
no dependences in the dependence_relations vector.
|
||||
|
||||
2008-01-16 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
PR rtl-optimization/31396
|
||||
|
|
|
@ -2595,11 +2595,16 @@ lambda_transform_legal_p (lambda_trans_matrix trans,
|
|||
gcc_assert (LTM_COLSIZE (trans) == nb_loops
|
||||
&& LTM_ROWSIZE (trans) == nb_loops);
|
||||
|
||||
/* When there is an unknown relation in the dependence_relations, we
|
||||
know that it is no worth looking at this loop nest: give up. */
|
||||
/* When there are no dependences, the transformation is correct. */
|
||||
if (VEC_length (ddr_p, dependence_relations) == 0)
|
||||
return true;
|
||||
|
||||
ddr = VEC_index (ddr_p, dependence_relations, 0);
|
||||
if (ddr == NULL)
|
||||
return true;
|
||||
|
||||
/* When there is an unknown relation in the dependence_relations, we
|
||||
know that it is no worth looking at this loop nest: give up. */
|
||||
if (DDR_ARE_DEPENDENT (ddr) == chrec_dont_know)
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue