Fix branch prediction dump message (was: Predict loops containing recursive call with fewer iterations)

2024-09-04 Thread Thomas Schwinge
Hi! On 2016-06-26T21:36:56+0200, Jan Hubicka wrote: > this patch [...] > --- predict.c (revision 237789) > +++ predict.c (working copy) > @@ -3367,6 +3446,15 @@ pass_profile::execute (function *fun) > gimple_dump_cfg (dump_file, dump_flags); > if (profile_status_for_fn (fun) == PROFILE_A

Predict loops containing recursive call with fewer iterations

2016-06-26 Thread Jan Hubicka
Hi, this patch further tune the branch prediction in recursive functions. The loop predictor now check if the loop body contains a recursive call and use different predictors in that case. This makes it possible to specify that loops contianing self recursive calls usually iterate fewer time. Boo