This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Folding of calls to builtin functions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]