PR target/81369
* tree-loop-distribution.c (merge_dep_scc_partitions): Sink call to
function sort_partitions_by_post_order.
gcc/testsuite
* gcc.dg/tree-ssa/pr81369.c: New.
From-SVN: r250269
+2017-07-17 Bin Cheng <bin.cheng@arm.com>
+
+ PR target/81369
+ * tree-loop-distribution.c (merge_dep_scc_partitions): Sink call to
+ function sort_partitions_by_post_order.
+
2017-07-17 Bin Cheng <bin.cheng@arm.com>
PR tree-optimization/81374
+2017-07-17 Bin Cheng <bin.cheng@arm.com>
+
+ PR target/81369
+ * gcc.dg/tree-ssa/pr81369.c: New.
+
2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
* gcc.target/arc/pr9000674901.c: New file.
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -ftree-loop-distribution" } */
+
+typedef __PTRDIFF_TYPE__ intptr_t;
+int wo;
+
+void
+sy (long int *as)
+{
+ for (;;)
+ {
+ *as = wo;
+ while (as < (long int *) (void *) 2)
+ {
+ int *y9;
+
+ if (wo != 0)
+ *y9 = (int) (intptr_t) &wo;
+ wo /= (wo != 0 && *y9 != 0);
+ ++as;
+ }
+ }
+}
data->partition = NULL;
}
}
- sort_partitions_by_post_order (pg, partitions);
}
+
+ sort_partitions_by_post_order (pg, partitions);
gcc_assert (partitions->length () == (unsigned)num_sccs);
free_partition_graph_vdata (pg);
free_graph (pg);