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] Gimple vs builtins


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


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