+2018-01-11 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/83435
+ * graphite.c (canonicalize_loop_form): Ignore fake loop exit edges.
+ * graphite-scop-detection.c (scop_detection::get_sese): Likewise.
+ * tree-vrp.c (add_assert_info): Drop TREE_OVERFLOW if they appear.
+
2018-01-11 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
edge scop_begin = loop_preheader_edge (loop);
edge scop_end = single_exit (loop);
- if (!scop_end || (scop_end->flags & EDGE_COMPLEX))
+ if (!scop_end || (scop_end->flags & (EDGE_COMPLEX|EDGE_FAKE)))
return invalid_sese;
/* Include the BB with the loop-closed SSA PHI nodes.
canonicalize_loop_closed_ssa makes sure that is in proper shape. */
FOR_EACH_LOOP (loop, LI_FROM_INNERMOST)
{
edge e = single_exit (loop);
- if (!e || (e->flags & EDGE_COMPLEX))
+ if (!e || (e->flags & (EDGE_COMPLEX|EDGE_FAKE)))
continue;
canonicalize_loop_closed_ssa (loop, e);
+2018-01-11 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/83435
+ * gcc.dg/graphite/pr83435.c: New testcase.
+
2018-01-11 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O -ftree-parallelize-loops=2 -floop-parallelize-all" } */
+
+int yj, ax;
+
+void
+gf (signed char mp)
+{
+ int *dh = &yj;
+
+ for (;;)
+ {
+ signed char sb;
+
+ for (sb = 0; sb < 1; sb -= 8)
+ {
+ }
+
+ mp &= mp <= sb;
+ if (mp == 0)
+ dh = &ax;
+ mp = 0;
+ *dh = 0;
+ }
+}
assert_info info;
info.comp_code = comp_code;
info.name = name;
+ if (TREE_OVERFLOW_P (val))
+ val = drop_tree_overflow (val);
info.val = val;
info.expr = expr;
asserts.safe_push (info);