This is the mail archive of the
mailing list for the GCC project.
Re: [LTO] patch: new CALL_EXPR abstractions in builtins.c
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 28 Jun 2006 09:38:36 -0400
- Subject: Re: [LTO] patch: new CALL_EXPR abstractions in builtins.c
- References: <Pine.LNX.email@example.com>
Roger Sayle wrote:
Now I appreciate the not every call to fold will/must leak
memory using Sandra's scheme or even on mainline, but I'd hope
the above statistic is surprising enough to most people, to
induce a more accurate sense of respect about what's being
traded-off. You'll also understand why many middle-end folks
strongly believe that trees should be folded at construction
time, and when modified, rather than repeatedly calling fold
on the same expression.
FWIW, I have been busy implementing Roger's suggestion and changing all the
fold_builtin_foo guys to take the individual arguments instead of either a list
or the whole CALL_EXPR. I'll be back with a revised patch in a few days.