From 3be2994eca77013f3ab325a1265e8536cdb9fc6f Mon Sep 17 00:00:00 2001 From: jakub Date: Fri, 6 Oct 2006 07:27:28 +0000 Subject: PR tree-optimization/29290 * tree-loop-linear.c (linear_transform_loops): Bail if loop_nest has multiple exits. * gfortran.dg/loop_nest_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117484 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-loop-linear.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/tree-loop-linear.c') diff --git a/gcc/tree-loop-linear.c b/gcc/tree-loop-linear.c index e0f5bd2991b..2ef7eacec13 100644 --- a/gcc/tree-loop-linear.c +++ b/gcc/tree-loop-linear.c @@ -265,12 +265,12 @@ linear_transform_loops (struct loops *loops) { ... } - for (j = 0; j < 50; j++) + for (j = 0; j < 50; j++) { ... } } */ - if (!loop_nest || !loop_nest->inner) + if (!loop_nest || !loop_nest->inner || !loop_nest->single_exit) continue; VEC_truncate (tree, oldivs, 0); VEC_truncate (tree, invariants, 0); -- cgit v1.2.3