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


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?


Diego.


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