Commit d49c149d by Sebastian Pop Committed by Sebastian Pop

lambda-code.c (lambda_transform_legal_p): Handle the case of no dependences in…

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
parent a03c6d64
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> 2008-01-16 Jan Hubicka <jh@suse.cz>
PR rtl-optimization/31396 PR rtl-optimization/31396
......
...@@ -2595,11 +2595,16 @@ lambda_transform_legal_p (lambda_trans_matrix trans, ...@@ -2595,11 +2595,16 @@ lambda_transform_legal_p (lambda_trans_matrix trans,
gcc_assert (LTM_COLSIZE (trans) == nb_loops gcc_assert (LTM_COLSIZE (trans) == nb_loops
&& LTM_ROWSIZE (trans) == nb_loops); && LTM_ROWSIZE (trans) == nb_loops);
/* When there is an unknown relation in the dependence_relations, we /* When there are no dependences, the transformation is correct. */
know that it is no worth looking at this loop nest: give up. */ if (VEC_length (ddr_p, dependence_relations) == 0)
return true;
ddr = VEC_index (ddr_p, dependence_relations, 0); ddr = VEC_index (ddr_p, dependence_relations, 0);
if (ddr == NULL) if (ddr == NULL)
return true; 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) if (DDR_ARE_DEPENDENT (ddr) == chrec_dont_know)
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment