This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] fold Reorganization Plan
- From: Andrew Haley <aph at redhat dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: Kazu Hirata <kazu at cs dot umass dot edu>, gcc at gcc dot gnu dot org, dvorakz at suse dot cz, roger at eyesopen dot com
- Date: Sat, 12 Feb 2005 14:12:20 +0000
- Subject: Re: [RFC] fold Reorganization Plan
- References: <20050212.000649.74746665.kazu@cs.umass.edu><420E0817.3040303@codesourcery.com>
Nathan Sidwell writes:
>
> I question if it is better to fold early. As I've said before, I think
> the optimizations that fold performs should be turned into a proper SSA
> optimization phase% -- that can be repeatedly applied as necessary. In the
> front end, folding should not generally be done.
There have been several occasions on which I've fixed bugs caused by
the fact that folding that is legal in C and C++ has not been legal in
Java.
It might be that moving folding away from the front end will be good,
but we'd still need support for initialized constant decls.
Andrew