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

Reply via email to