This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cleanup WHOPR partitioning and sort partitions by size


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]