This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PING 3] Distribute __builtin_expect over short-circuiting operations in fold
Adam Nemet wrote:
> Adam Nemet <anemet@caviumnetworks.com> writes:
>
>> Can someone please look at this. In spite of the subject of the
>> original email, this is not a change in the gimplifier but in fold:
>>
>> http://gcc.gnu.org/ml/gcc-patches/2007-07/msg00410.html
>>
>> Adam
> ! arglist = build_tree_list (NULL_TREE, expected);
> ! arglist = tree_cons (NULL_TREE, pred, arglist);
> ! call_expr = build_function_call_expr (fn, arglist);
I believe you can now use build_call_expr, and avoid the garbage
TREE_LIST nodes.
OK if no objections within 48 hours.
Thanks,
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713