Referenced Vars in IPA pass
Paulo J. Matos
pocm@soton.ac.uk
Tue Mar 13 17:28:00 GMT 2007
On 3/13/07, Jeffrey Law <law@redhat.com> wrote:
> On Tue, 2007-03-13 at 18:09 +0100, Paolo Bonzini wrote:
> > > int x;
> > > {
> > > int y;
> > > {
> > > int z;
> > > ...
> > > }
> > > ...
> > > }
> > >
> > > just happens to have three statements, all VAR_DECL,x, y, z, without
> > > any reference to the starting and ending blocks. As a side question,
> > > how can I get hand of where the blocks start and finish? Don't really
> > > know if it's useful but If I need it later, better I know how.
> >
> > This is not available anymore after lowering to GIMPLE. BIND_EXPRs
> > (representing lexical scope) are removed in gimple-low.c.
> Correct. FWIW, we originally kept that BIND_EXPRs and a variety of
> other higher level constructs. But they turned out to be a major
> PITA to work with in the optimizers. It was far cleaner to flatten
> the IL.
>
OK, thank you.
> Jeff
>
>
--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK
More information about the Gcc
mailing list