On Wed, Jul 13, 2011 at 10:09 PM, AJM-2 <mcpherson...@gmail.com> wrote: > > Putting my "simple IPA pass" adjacent to IPA-PTA does cause it to be called > as expected. However for each node in the call graph (with > cgraph_function_body_availability returning AVAIL_AVAILABLE), > gimple_has_body_p is always false. > > The call graph data seems to be available, but the documentation indicates > that access to the gimple is also possible, using the standard accessors. > Is there some extra step that must be taken to access gimple under LTO?
The body should be available. Make sure to use a recent SVN trunk though. Richard. > > > Richard Guenther-2 wrote: >> >> It depends on where in the pass pipeline you put your IPA pass. A simple >> IPA pass that should run at ltrans time (either seeing each partition for >> the partitioned program or the 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. > >