2016-01-11 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/69109
* tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
latch with phi.
* gcc.dg/autopar/pr69109-2.c: New test.
* gcc.dg/autopar/pr69109.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232212
138bc75d-0d04-0410-961f-
82ee72b054a4
+2016-01-11 Tom de Vries <tom@codesourcery.com>
+
+ PR tree-optimization/69109
+ * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
+ latch with phi.
+
2016-01-11 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/69108
+2016-01-11 Tom de Vries <tom@codesourcery.com>
+
+ PR tree-optimization/69109
+ * gcc.dg/autopar/pr69109-2.c: New test.
+ * gcc.dg/autopar/pr69109.c: New test.
+
2016-01-11 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/69108
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -ftree-parallelize-loops=2 -funswitch-loops" } */
+
+#include "../../gcc.c-torture/compile/pr32399.c"
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -ftree-parallelize-loops=2 -funswitch-loops" } */
+
+#include "../vect/unswitch-loops-pr26969.c"
if (!gimple_seq_nondebug_singleton_p (bb_seq (loop->latch)))
return false;
+ /* Check whether the latch contains no phis. */
+ if (phi_nodes (loop->latch) != NULL)
+ return false;
+
/* Check whether the latch contains the loop iv increment. */
edge back = single_succ_edge (loop->latch);
edge exit = single_dom_exit (loop);