X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Ftree-loop-linear.c;h=c648ef77c0db868456f7e2b54d7232f834b43951;hp=bf353e59f5b4ba99e8f1ee1e35a2c59e4795ad8c;hb=e0cf06e1bf07470375705fb2809bea842c7a36fa;hpb=c094ccabf425707f2d2dae9b213594ab204c26e0 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);