This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using fold() in frontends
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: joseph at codesourcery dot com, gcc at gcc dot gnu dot org
- Date: Mon, 07 Mar 2005 19:59:46 -0800
- Subject: Re: Using fold() in frontends
- Organization: CodeSourcery, LLC
- References: <10503071857.AA02893@vlsi1.ultra.nyu.edu>
Richard Kenner wrote:
I think the confusion may be in what is being called "parsing and
semantic analysis" as opposed to "the front end". I agree that fold
is probably not appropriate to be called during the former, but the latter
includes the act of building the GENERIC tree and I see absolutely no
reason to avoid calling fold as part of that process: it's far more efficient
to do it then and build simpler trees than to burden the gimplication
process with junk trees.
I think you're in violent agreement with the rest of us.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304