> gcc/ChangeLog:
>
> 2018-08-09 Martin Liska
>
> PR target/83610
> * builtin-types.def (BT_FN_LONG_LONG_LONG_DOUBLE): Add new
> function type.
> * builtins.c (expand_builtin_expect_with_probability):
> New function.
> (expand_builtin_expect_with_probab
now more readable.
Martin
>
> It would be still very nice to arrange loop code to set
> loop->nb_iterations_estimate
> accordingly in this case. That would be useful for loop opts as reliable
> hint that
> number of iterations is about that much.
>
> Honza
>
>From 5df1c861976479f
> 2018-07-24 Martin Liska
>
> PR target/83610
> * builtin-types.def (BT_FN_LONG_LONG_LONG_DOUBLE): New type.
> * builtins.c (expand_builtin_expect_with_probability):
> New function.
> (expand_builtin): Handle also BUILT_IN_EXPECT_WITH_PROBABILITY.
> (buil
>else
>> predict_edge_def (then_edge, predictor,
>>integer_zerop (val) ? NOT_TAKEN : TAKEN);
>> @@ -3927,10 +3959,11 @@ pass_strip_predict_hints::execute (function *fun)
>> {
>> tree fndecl = gimple_call_fndecl (stmt);
>
> Hi.
>
> This is implementation of new built-in that can be used for more fine
> tweaking of probability. Micro benchmark is attached as part of the PR.
>
> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
>
> Ready to be installed?
It reasonale to me to add the fatur
Hi.
This is implementation of new built-in that can be used for more fine
tweaking of probability. Micro benchmark is attached as part of the PR.
Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
Ready to be installed?
Martin
gcc/ChangeLog:
2018-07-24 Martin Liska