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: [tree-profiling/RFC] Extending passmanager to deal with IPA passes



On Oct 25, 2004, at 5:13 AM, Jan Hubicka wrote:


Hi,
this patch extends the passmanager to deal with IPA passes. This is
done by adding 4 new hooks neccesary to the PM structure and adding some
extra entry points to do the IPA analysis and optimizations to the
tree-optimize.
In general I would like to replace the tree_rest_of_compilation by just
set of nested passes so the passmanager is completely driven by
cgraphunit and all the other actions are driven by the PM.

I was look into using the pass manager for an IPA pass when I noticed that we do the following order for passes: function analysis execute variable analysis

Which seems wrong as we should do the following order instead:
function analysis
variable analysis
execute

As we generate some information by the two analysis functions which
should be used by the execute function which do some more analysis
of the data which is used by the modify functions.

I think the order right now causes the static-var pass to generate
not correct information as of right now.

Thanks,
Andrew Pinski


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