summaryrefslogtreecommitdiffstats
path: root/gcc/tree-loop-linear.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-06 07:27:28 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-06 07:27:28 +0000
commit3be2994eca77013f3ab325a1265e8536cdb9fc6f (patch)
tree0811968585b6f7322894c75019090cce932c2db8 /gcc/tree-loop-linear.c
parent8d3480ed2a123c54de409c907670a11e811c1b8e (diff)
downloadppe42-gcc-3be2994eca77013f3ab325a1265e8536cdb9fc6f.tar.gz
ppe42-gcc-3be2994eca77013f3ab325a1265e8536cdb9fc6f.zip
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
Diffstat (limited to 'gcc/tree-loop-linear.c')
-rw-r--r--gcc/tree-loop-linear.c4
1 files changed, 2 insertions, 2 deletions
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);
OpenPOWER on IntegriCloud