This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ast-optimizer-branch]: CFG improvements [patch]
- To: Dan Nicolaescu <dann at godzilla dot ICS dot UCI dot EDU>
- Subject: Re: [ast-optimizer-branch]: CFG improvements [patch]
- From: Diego Novillo <dnovillo at redhat dot com>
- Date: Sat, 11 Aug 2001 21:39:54 -0400
- Cc: gcc-patches at gcc dot gnu dot org, Nathan Sidwell <nathan at codesourcery dot com>
- Organization: Red Hat Canada
- References: <200108102123.aa00962@gremlin-relay.ics.uci.edu>
On Fri, 10 Aug 2001, Dan Nicolaescu wrote:
>
> > 2001-08-10 Diego Novillo <dnovillo@redhat.com>
> >
> > * basic-block.h (basic_block): Add new field 'reachable'.
> > (expunge_block): Declare.
>
> One suggestion: you could steal one bit from `loop_depth' in that
> structure and use it for `reachable', that would avoid increasing the
> size of struct basic_block_def
>
Ugh. I suppose. I'm not really fond of hacks like this one,
they eventually come back to haunt you.
I was thinking more along the lines of having an 'flags' field
like we do in edges. We may want to add more flags in the future
(although I can't think of a meaningful example right now).
I'll go with the flow here. What do folks think? Should we add
a 'flags' field or piggyback flags like this one on unused bits
in the structure?
Diego.