This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Perform constant folding of math builtins
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: 26 Aug 2002 06:08:12 +0200
- Subject: Re: [PATCH] Perform constant folding of math builtins
- Organization: CodeSourcery, LLC
- References: <Pine.LNX.4.33.0208251925340.26698-100000@www.eyesopen.com>
Roger Sayle <roger@eyesopen.com> writes:
A small nit:
| + /* Determine whether a tree node represents a call to a built-in
| + math function. If the tree T is a call to a built-in function
| + taking a single real argument, then the return value is the
| + DECL_FUNCTION_CODE of the call, e.g. BUILT_IN_SQRT. Otherwise
| + the return value is END_BUILTINS. */
| +
| + enum built_in_function
| + builtin_mathfn_p (t)
This really isn't a predicate; builtin_mathfn_code?
I'm glad to see your continueing constant work in this area.
Thanks,
-- Gaby