Re: [PATCH] Introduce __builtin_expect_with_probability (PR target/83610).

2018-08-09 Thread Jan Hubicka
> 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

Re: [PATCH] Introduce __builtin_expect_with_probability (PR target/83610).

2018-08-09 Thread Martin Liška
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

Re: [PATCH] Introduce __builtin_expect_with_probability (PR target/83610).

2018-08-07 Thread Jan Hubicka
> 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

Re: [PATCH] Introduce __builtin_expect_with_probability (PR target/83610).

2018-08-01 Thread Martin Liška
>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); >

Re: [PATCH] Introduce __builtin_expect_with_probability (PR target/83610).

2018-07-31 Thread Jan Hubicka
> 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

[PATCH] Introduce __builtin_expect_with_probability (PR target/83610).

2018-07-24 Thread Martin Liška
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