The GCC wiki says:

"GCC uses execution profiles consisting of basic block and edge frequency 
counts to guide optimizations such as instruction scheduling, basic block 
reordering, function splitting, and register allocation."

More info here:
https://gcc.gnu.org/wiki/AutoFDO/Tutorial

Timur

On Friday, 14 February 2020, Marek Olšák wrote:
> Yeah I guess it reduces instruction cache misses, but then other codepaths
> are likely to get more misses.
> 
> Does it do anything smarter?
> 
> Marek
> 
> On Thu., Feb. 13, 2020, 17:52 Dave Airlie, <airl...@gmail.com> wrote:
> 
> > On Fri, 14 Feb 2020 at 08:22, Marek Olšák <mar...@gmail.com> wrote:
> > >
> > > I wonder what PGO really does other than placing likely/unlikely.
> >
> > With LTO it can do a lot more, like grouping hot functions into closer
> > regions so they avoid TLB misses and faults etc.
> >
> > Dave.
> >
>

-- 
Sent from my Sailfish device
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to