diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-17 12:47:43 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-17 12:47:43 +0000 |
commit | e0cf06e1bf07470375705fb2809bea842c7a36fa (patch) | |
tree | 5481b6b2033b983f6e7cc5b560d6cbcf577d8971 /gcc/tree-loop-linear.c | |
parent | c094ccabf425707f2d2dae9b213594ab204c26e0 (diff) | |
download | gcc-e0cf06e1bf07470375705fb2809bea842c7a36fa.tar.gz |
PR middle-end/27332
* tree-loop-linear.c (try_interchange_loops): Test for
no data dependences.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113856 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-loop-linear.c')
-rw-r--r-- | gcc/tree-loop-linear.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-loop-linear.c b/gcc/tree-loop-linear.c index bf353e59f5b..c648ef77c0d 100644 --- a/gcc/tree-loop-linear.c +++ b/gcc/tree-loop-linear.c @@ -178,6 +178,9 @@ try_interchange_loops (lambda_trans_matrix trans, unsigned int nb_deps_not_carried_by_i, nb_deps_not_carried_by_j; struct data_dependence_relation *ddr; + if (VEC_length (ddr_p, dependence_relations) == 0) + return trans; + /* When there is an unknown relation in the dependence_relations, we know that it is no worth looking at this loop nest: give up. */ ddr = VEC_index (ddr_p, dependence_relations, 0); |