[PATCH] Middle-end dead code elimination

Diego Novillo dnovillo@redhat.com
Wed Apr 16 20:44:00 GMT 2003


On Wed, 2003-04-16 at 16:33, law@redhat.com wrote:

>  >This optimization centers around "expand_unreachable_stmt", a new
>  >function, which is an analog of the existing "expand_stmt".  The
>  >semantics of this function are to skip all statements up until
>  >the first label (case label or use label) where control flow can
>  >resume and only emit RTL for this and later statements.
> What I think is going to make more sense is to run this earlier
> in the compilation process.  Like right after we've generated the
> trees for the function instead of at expansion time.  That way the
> tree-ssa path can benefit by having less useless stuff to translate
> into gimple (and eventually less rtl to generate).
> 
> Thoughts?
> 
Sounds interesting.  Is this something that could be easily piggybacked
into the gimplification pass?


Diego.



More information about the Gcc-patches mailing list