This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: After GIMPLE...
- From: "Paulo J. Matos" <pocm at soton dot ac dot uk>
- To: "Diego Novillo" <dnovillo at redhat dot com>
- Cc: "Ian Lance Taylor" <iant at google dot com>, gcc at gcc dot gnu dot org
- Date: Tue, 6 Feb 2007 19:19:59 +0000
- Subject: Re: After GIMPLE...
- References: <11b141710701290917p102e7126qf791ceebadae4382@mail.gmail.com> <m3veip62u0.fsf@localhost.localdomain> <11b141710701300711i599ba481ke97c2e36f4ae9c6e@mail.gmail.com> <45C0A33D.5040802@redhat.com> <11b141710701310826s7e49cc1bt982f4487c1a1d45f@mail.gmail.com> <45C10460.9050203@redhat.com>
On 1/31/07, Diego Novillo <dnovillo@redhat.com> 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