[Mesa-dev] Profile-guides optimizations

Timur Kristóf timur.kristof at gmail.com
Fri Feb 14 00:38:15 UTC 2020


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, <airlied at gmail.com> wrote:
> 
> > On Fri, 14 Feb 2020 at 08:22, Marek Olšák <maraeo at 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


More information about the mesa-dev mailing list