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]

Re: [ast-optimizer-branch]: CFG improvements [patch]


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.


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