2016-01-10 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/69039
* tree-parloops.c (try_create_reduction_list): Only allow single exit
phi for reduction.
* gcc.dg/autopar/pr69039.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232196
138bc75d-0d04-0410-961f-
82ee72b054a4
+2016-01-10 Tom de Vries <tom@codesourcery.com>
+
+ PR tree-optimization/69039
+ * tree-parloops.c (try_create_reduction_list): Only allow single exit
+ phi for reduction.
+
2016-01-09 John David Anglin <danglin@gcc.gnu.org>
PR middle-end/68743
+2016-01-10 Tom de Vries <tom@codesourcery.com>
+
+ PR tree-optimization/69039
+ * gcc.dg/autopar/pr69039.c: New test.
+
2016-01-09 Marek Polacek <polacek@redhat.com>
PR c++/69113
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -ftree-parallelize-loops=2" } */
+
+unsigned int b;
+
+unsigned int
+fn1 (unsigned int d)
+{
+ int i;
+
+ for (i = 0; i < 1000; i++)
+ b |= d;
+
+ return b;
+}
" FAILED: it is not a part of reduction.\n");
return false;
}
+ if (red->keep_res != NULL)
+ {
+ if (dump_file && (dump_flags & TDF_DETAILS))
+ fprintf (dump_file,
+ " FAILED: reduction has multiple exit phis.\n");
+ return false;
+ }
+ red->keep_res = phi;
if (dump_file && (dump_flags & TDF_DETAILS))
{
fprintf (dump_file, "reduction phi is ");