diff options
author | Sebastian Pop <pop@cri.ensmp.fr> | 2006-05-17 14:47:43 +0200 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2006-05-17 12:47:43 +0000 |
commit | 9cb8f1bac57900cba3d92cb4bd2e23e1ffc19653 (patch) | |
tree | 5481b6b2033b983f6e7cc5b560d6cbcf577d8971 /gcc/tree-loop-linear.c | |
parent | bfaacea7f5448103e422119bd0f17b475f79dcd2 (diff) | |
download | gcc-9cb8f1bac57900cba3d92cb4bd2e23e1ffc19653.zip gcc-9cb8f1bac57900cba3d92cb4bd2e23e1ffc19653.tar.gz gcc-9cb8f1bac57900cba3d92cb4bd2e23e1ffc19653.tar.bz2 |
re PR tree-optimization/27332 (ICE in try_interchange_loops with -ftree-loop-linear)
PR middle-end/27332
* tree-loop-linear.c (try_interchange_loops): Test for
no data dependences.
From-SVN: r113856
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 bf353e5..c648ef7 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); |