Re: IPA and LTO

2011-07-13 Thread Richard Guenther
e whole program if you use one partition) >> needs to be put alongside IPA PTA (that's the only simple IPA pass >> executed >> at link LTO time right now). >> >> Richard. >> >> > > -- > View this message in context: > http://old.nabble.com/IPA-and-LTO-tp32052838p32056682.html > Sent from the gcc - Dev mailing list archive at Nabble.com. > >

Re: IPA and LTO

2011-07-13 Thread AJM-2
> -- View this message in context: http://old.nabble.com/IPA-and-LTO-tp32052838p32056682.html Sent from the gcc - Dev mailing list archive at Nabble.com.

Re: IPA and LTO

2011-07-13 Thread Richard Guenther
can.  You seem to be describing what GCC calls "simple IPA >> pass".  These are passes that cannot run in partitioned LTO mode, as >> they require the function bodies to operate.  Look for passes like >> pass_ipa_function_and_variable_visibility for an example of a simple &g

Re: IPA and LTO

2011-07-13 Thread Pierre Vittet
Hello, If local_function_and_variable_visibility was not a simple IPA pass it would not have been called once per file but once per function (as it is with GIMPLE pass). I feel this is normal that this pass is run 2 times because it is run before any link operations. However, I don't know ex

Re: IPA and LTO

2011-07-13 Thread AJM-2
asses like > pass_ipa_function_and_variable_visibility for an example of a simple > IPA pass. > > > Diego. > > -- View this message in context: http://old.nabble.com/IPA-and-LTO-tp32052838p32054720.html Sent from the gcc - Dev mailing list archive at Nabble.com.

Re: IPA and LTO

2011-07-13 Thread Diego Novillo
On Wed, Jul 13, 2011 at 10:22, AJM-2 wrote: > My question is whether LTO can be used in this way, to have a simple ipa > pass called once at link time with access to the function bodies, and if so > how is this achieved?  cgraph_function_body_availability seems to only be > half the story. Yes,

IPA and LTO

2011-07-13 Thread AJM-2
function bodies, and if so how is this achieved? cgraph_function_body_availability seems to only be half the story. I am using GCC 4.6.0 with the gold linker plugin (binutils 2.21). Andrew -- View this message in context: http://old.nabble.com/IPA-and-LTO-tp32052838p32052838.html Sent from the gcc

IPA and LTO

2011-07-13 Thread AJM-2
function bodies, and if so how is this achieved? cgraph_function_body_availability seems to only be half the story. I am using GCC 4.6.0 with the gold linker plugin (binutils 2.21). Andrew -- View this message in context: http://old.nabble.com/IPA-and-LTO-tp32052768p32052768.html Sent from the gcc