This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Cleanup WHOPR partitioning and sort partitions by size
- From: Richard Guenther <rguenther at suse dot de>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sat, 29 May 2010 19:38:56 +0200 (CEST)
- Subject: Re: Cleanup WHOPR partitioning and sort partitions by size
- References: <20100529173319.GD13801@kam.mff.cuni.cz>
On Sat, 29 May 2010, Jan Hubicka wrote:
> Hi,
> this patch adds ltrans_partition structure that will help future partitioning
> algorithms. I updated 1_1 partitioner for it and added counting of unit size.
> This is used in lto_wpa_write_files to sort files by size so largest unit is executed
> first in parallel build. This cuts WHOPR cc1 build times considerably since unit
> corresponding to insn-attrtab is executed first.
>
> Bootstrapped/regtested x86_64-linux with WHOPR enabled, OK?
> + ltrans_partition part = VEC_index (ltrans_partition, ltrans_partitions, i);
> + const struct ltrans_partition_def *pa = *(struct ltrans_partition_def *const *)a;
> + const struct ltrans_partition_def *pb = *(struct ltrans_partition_def *const *)b;
> + gcc_assert (cgraph_node_set_nonempty_p (set) || varpool_node_set_nonempty_p (vset) || !i);
Watch long lines!
Ok.
Thanks,
Richard.