aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-loop-distribution.c
diff options
context:
space:
mode:
authorBin Cheng <bin.cheng@arm.com>2017-07-17 11:38:15 +0000
committerBin Cheng <amker@gcc.gnu.org>2017-07-17 11:38:15 +0000
commitaa1528b5c91bd9fee1a7de9c6ebc28eff5040afd (patch)
tree7b892cc72f6806e1373a0161e86e026a0a4ec996 /gcc/tree-loop-distribution.c
parent3fb824520b804305f510a9a2b84b652a23a72f22 (diff)
re PR tree-optimization/81369 (ICE in generate_code_for_partition)
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
Diffstat (limited to 'gcc/tree-loop-distribution.c')
-rw-r--r--gcc/tree-loop-distribution.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-loop-distribution.c b/gcc/tree-loop-distribution.c
index 5c8f29dc36f..9363c1de683 100644
--- a/gcc/tree-loop-distribution.c
+++ b/gcc/tree-loop-distribution.c
@@ -1997,8 +1997,9 @@ merge_dep_scc_partitions (struct graph *rdg,
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);