This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] fold Reorganization Plan
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: roger at eyesopen dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 12 Feb 05 15:58:54 EST
- Subject: Re: [RFC] fold Reorganization Plan
As several front-end people have suggested, calling fold whilst
constructing parse trees shouldn't be necessary (as shown by the
shining examples of g77 and GNAT).
I don't follow. GNAT certainly calls fold for every expression it makes.
In reality, many of the transformations performed by fold (most? as I
expect expressions with constant operands are actually fairly rare at
the source level) are purely to tidy up the inefficiencies or
incorrect tree representations constructed by the front-ends.
I disagree. It's far better to have common code to do simplifications
than to have each front end have their own set. I'm not sure I understand
your point here.