Thread overview
LLVM split functions in hot/cold regions optimization (PGO)
Aug 31, 2020
Johan
Aug 31, 2020
Jon Degenhardt
Sep 01, 2020
Johan
Sep 25, 2020
Stefanos Baziotis
August 31, 2020
LLVM gained an interesting new optimization pass to split functions in hot/cold regions based on PGO profile data:
https://reviews.llvm.org/rG94faadaca4e

cheers,
  Johan

August 31, 2020
On Monday, 31 August 2020 at 23:31:31 UTC, Johan wrote:
> LLVM gained an interesting new optimization pass to split functions in hot/cold regions based on PGO profile data:
> https://reviews.llvm.org/rG94faadaca4e

Very interesting. Will LDC gain this optimization pass simply by upgrading the LLVM version, or will it be necessary to update LDC's PGO as well?

September 01, 2020
On Monday, 31 August 2020 at 23:46:24 UTC, Jon Degenhardt wrote:
> On Monday, 31 August 2020 at 23:31:31 UTC, Johan wrote:
>> LLVM gained an interesting new optimization pass to split functions in hot/cold regions based on PGO profile data:
>> https://reviews.llvm.org/rG94faadaca4e
>
> Very interesting. Will LDC gain this optimization pass simply by upgrading the LLVM version, or will it be necessary to update LDC's PGO as well?

Upgrading LLVM, and enabling it with a cmdline flag (not enabled by default at the moment). It seems to use the already existing PGO profile data.


-Johan

September 25, 2020
On Monday, 31 August 2020 at 23:31:31 UTC, Johan wrote:
> LLVM gained an interesting new optimization pass to split functions in hot/cold regions based on PGO profile data:
> https://reviews.llvm.org/rG94faadaca4e
>
> cheers,
>   Johan

Tech talk: https://youtu.be/Q8rqGg6vHAE

- Stefanos