HomePhabricator

[PGO] Profile guided code size optimization.

Description

[PGO] Profile guided code size optimization.

Summary:
Enable some of the existing size optimizations for cold code under PGO.

A ~5% code size saving in big internal app under PGO.

The way it gets BFI/PSI is discussed in the RFC thread

http://lists.llvm.org/pipermail/llvm-dev/2019-March/130894.html

Note it doesn't currently touch loop passes.

Reviewers: davidxl, eraman

Reviewed By: eraman

Subscribers: mgorny, javed.absar, smeenai, mehdi_amini, eraman, zzheng, steven_wu, dexonsmith, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D59514

Details

Committed
yamauchiApr 15 2019, 9:49 AM
Reviewer
eraman
Differential Revision
D59514: [PGO] Profile guided code size optimization.
Parents
rL358421: llvm-undname: Fix nullptr deref on invalid conversion operator names in…
Branches
Unknown
Tags
Unknown