Scripts to bootstrap clang and measure performance.
- Git clone github.com/llvm-project
- Install dependencies - cmake ninja clang lld linux-perf-5.2
- Set env var
LLVM_PROJECT
to point to location in (1). - Build the compilers
make pgo-vanilla-compiler pgo-split-compiler
- Benchmark the compilers
make benchmark-pgo-vanilla benchmark-pgo-split
- plain-compiler: Release mode compiler, no assertions
- pgo-vanilla: plain compiler + Instr. PGO
- afdo-vanilla: plain compiler + Sample PGO
- pgo-split: pgo-vanilla + machine-function-splitter enabled
- pgo-hcs: pgo-vanilla + hot-cold-split pass enabled