This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Gimple vs builtins
- From: Zack Weinberg <zack at codesourcery dot com>
- To: law at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 12 Mar 2003 18:44:27 -0800
- Subject: Re: [tree-ssa] Gimple vs builtins
- References: <200303130027.h2D0RaBk031711@speedy.slc.redhat.com>
law at redhat dot com writes:
> ! /* Simplify a call to the strstr builtin.
>
> ! Return 0 if no simplification was possible, otherwise return the
> ! simplified form of the call as a tree.
> !
> ! The simplified form may be a constant or other expression which
> ! computes the same value, but in a more efficient manner (including
> ! calls to other builtin functions).
> !
> ! The call may contain arguments which need to be evaluated, but
> ! which are not useful to determine the result of the call. In
> ! this case we return a chain of COMPOUND_EXPRs. The LHS of each
> ! COMPOUND_EXPR will be an argument which must be evaluated.
> ! COMPOUND_EXPRs are chained through their RHS. The RHS of the last
> ! COMPOUND_EXPR in the chain will contain the tree for the simplified
> ! form of the builtin function call. */
Does this block of text really need to be duplicated ahead of every
simplify_builtin_foobar function?
zw