This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Folding of calls to builtin functions
- From: law at redhat dot com
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 26 Feb 2003 16:35:01 -0700
- Subject: Re: [tree-ssa] Folding of calls to builtin functions
- Reply-to: law at redhat dot com
In message <1046301805 dot 1114 dot 13 dot camel at frodo>, Diego Novillo writes:
>On Wed, 2003-02-26 at 18:15, law at redhat dot com wrote:
>
>> This allows us to fold calls to builtin functions with constant
>> arguments. This should be pretty rare so I'm not terribly concerned
>> about the call to copy_stmt.
>>
>>
>> * tree-ssa-ccp.c (ccp_fold): Also handle folding of calls to
>> builtin functions.
>>
>Why make it unnecessarily slow? It's just as easy to replace the
>builtin arguments like my original patch did. No copying involved. Did
>you notice anything wrong with my original solution?
I suspect you'll find that this is in the noise in terms of how often
it occurs (and thus the performance implications). I liked the nice
simple 3 lines of code solution.
If you think it's an issue, go ahead and put your code in. I've got no
strong attachments here :-)
Jeff