This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: [RFC] fold Reorganization Plan


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


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