Re: LTO partitioning reorg 4/n

2012-09-15 Thread Jan Hubicka
> > The patch also fixed undefined reference symbol seen with max partitioning > > on a testcase. > > Here we fold through a reference to constant variable into a reference to > > constant pool. > > Since initializer of the constant variable is not seen by the partitioner, > > we do not > > dupl

LTO partitioning reorg 4/n

2012-09-12 Thread Jan Hubicka
Hi, this patch unifies the code as promised in the previous patch. It also cleans up the APIs. We now have enum symbol_class specifying how the symbol should be handled and add_symbol_to_partition handling all the magic of what needs to be dragged into partition and what not. I also commonized so