aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-loop-linear.c
diff options
context:
space:
mode:
authorSebastian Pop <pop@cri.ensmp.fr>2006-05-17 14:47:43 +0200
committerSebastian Pop <spop@gcc.gnu.org>2006-05-17 12:47:43 +0000
commit9cb8f1bac57900cba3d92cb4bd2e23e1ffc19653 (patch)
tree5481b6b2033b983f6e7cc5b560d6cbcf577d8971 /gcc/tree-loop-linear.c
parentbfaacea7f5448103e422119bd0f17b475f79dcd2 (diff)
downloadgcc-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.c3
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);