diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-16 19:26:26 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-16 19:26:26 +0000 |
commit | b44df49a227dc08fabed295e7fc8ece4ea84ac57 (patch) | |
tree | f21d819119dcaf84a89f446be25eec089e1b66bc /gcc/lambda-code.c | |
parent | a8587796a0c5e2006243ff081b3e1fc4ae73e10b (diff) | |
download | ppe42-gcc-b44df49a227dc08fabed295e7fc8ece4ea84ac57.tar.gz ppe42-gcc-b44df49a227dc08fabed295e7fc8ece4ea84ac57.zip |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131577 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lambda-code.c')
-rw-r--r-- | gcc/lambda-code.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/lambda-code.c b/gcc/lambda-code.c index 0b67231a58d..dc656d3ef4e 100644 --- a/gcc/lambda-code.c +++ b/gcc/lambda-code.c @@ -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; |