Commit 2169830c by Jan Hubicka Committed by Jan Hubicka

* lto.c (lto_balanced_map): Do not produce empty partitions.

From-SVN: r165093
parent afbcdf5e
2010-10-06 Jan Hubicka <jh@suse.cz>
* lto.c (lto_balanced_map): Do not produce empty partitions.
2010-10-06 Andi Kleen <ak@linux.intel.com> 2010-10-06 Andi Kleen <ak@linux.intel.com>
* lto.c (lto_process_name): Add. * lto.c (lto_process_name): Add.
......
...@@ -1212,6 +1212,9 @@ lto_balanced_map (void) ...@@ -1212,6 +1212,9 @@ lto_balanced_map (void)
undo_partition (partition, best_n_nodes, best_n_varpool_nodes); undo_partition (partition, best_n_nodes, best_n_varpool_nodes);
} }
i = best_i; i = best_i;
/* When we are finished, avoid creating empty partition. */
if (i == n_nodes - 1)
break;
partition = new_partition (""); partition = new_partition ("");
last_visited_cgraph_node = 0; last_visited_cgraph_node = 0;
last_visited_varpool_node = 0; last_visited_varpool_node = 0;
......
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