Commit e693ebce by Jan Hubicka Committed by Jan Hubicka

* lto-partition.c (lto_balanced_map): Fix sanity check.

From-SVN: r259759
parent af1682fc
2018-04-20 Jan Hubicka <jh@suse.cz>
* lto-partition.c (lto_balanced_map): Fix sanity check.
2018-04-19 Jan Hubicka <jh@suse.cz>
* lto-partition.c: Include sreal.h
......
......@@ -809,7 +809,7 @@ lto_balanced_map (int n_lto_partitions, int max_partition_size)
next_nodes.safe_push (noreorder[noreorder_pos++]);
/* For one partition the cost of boundary should be 0 unless we added final
symbols here (these are not accounted) or we have accounting bug. */
gcc_assert (next_nodes.length () || npartitions != 1 || !best_cost);
gcc_assert (next_nodes.length () || npartitions != 1 || !best_cost || best_cost == -1);
add_sorted_nodes (next_nodes, partition);
free (order);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment