[PATCH] D125426: Add a new flavor "BBLabels" to LLVM_BUILD_INSTRUMENTED

Han Shen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 12 11:23:56 PDT 2022


shenhan added a comment.

Here is the proposed workflow to build a propeller optimized clang binary (similar to PGO build).

1. Build instrumented clang binary:

cmake -G Ninja ... -DLLVM_BUILD_INSTRUMENTED=BBLabels ... llvm-project/llvm
ninja build

2. Using the above built binary in day-to-day routine and collect perf.data file and then convert it to propeller profiles.

3. Build the optimized clang binary:

cmake -G Ninja ... -DLLVM_PROPELLER_PROFILES=<profile> ... llvm-project/llvm

The experiment data show propeller optimized clang has a 5% compiler time improvement over PGO build.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125426/new/

https://reviews.llvm.org/D125426



More information about the llvm-commits mailing list