* 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
2006-10-06 Jakub Jelinek <jakub@redhat.com>
+ PR tree-optimization/29290
+ * tree-loop-linear.c (linear_transform_loops): Bail if loop_nest has
+ multiple exits.
+
PR target/29198
* config/i386/i386.c (legitimize_pic_address): Reject TLS symbols.
* config/i386/predicates.md (local_symbolic_operand): Likewise.
2006-10-06 Jakub Jelinek <jakub@redhat.com>
+ PR tree-optimization/29290
+ * gfortran.dg/loop_nest_1.f90: New test.
+
PR target/29198
* gcc.dg/tls/opt-12.c: New test.
--- /dev/null
+! PR tree-optimization/29290
+! { dg-do compile }
+! { dg-options "-O3 -ftree-loop-linear" }
+
+subroutine pr29290 (a, b, c, d)
+ integer c, d
+ real*8 a(c,c), b(c,c)
+ a(1:d,1:d) = b(1:d,1:d)
+end
{
...
}
- 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);