On 1/31/07, Diego Novillo <[EMAIL PROTECTED]> wrote:
Paulo J. Matos wrote on 01/31/07 11:26:

> So, ideally, I would like just the gcc part until the first part of
> the middleend where you have a 'no optimizations', language
> independent AST of the source file.
>
OK, so you probably want to inject your pass right before pass_build_ssa

Why before pass_build_ssa? (version 4.1.1)
I've tried this but for some reason my pass is not called unless I use
-On where n > 0. Well, I guess it is because my pass is inside
pass_all_optimizations.sub.  So I guess the right thing would be to
have it run in all_passes, after pass_init_datastructures. Is it or is
it not a good idea to have it here. Was there any special reason for
you to suggest me to put it before pass_build_ssa, inside optimization
passes?

Cheers,

Paulo Matos

(in init_optimization_passes).  All the facilities to traverse the IL
and flowgraph described in the Tree SSA section of the internals manual
should apply.



--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK

Reply via email to