~/talk

ThinLTO: Scalable and Incremental Link-Time Optimization

Talkat CppCon 2017 · 2017-09-24..09-29· [compilers-and-language-design]
links:none on file
slides:none on file

Whole-program optimization is implemented as ThinLTO inside LLVM: each .o emits a small summary, the linker builds a combined index, makes import/inlining decisions, and backends parallelize by importing only marked functions. Results: monolithic LTO once needed ~43 GB (later ~11 GB) and is ~4× slower for clang; ThinLTO’s thin link runs in seconds, a one-file incremental rebuild hits cached backends or compiles in 16 seconds, Chromium monolithic LTO ~28 minutes while ThinLTO scales like O2 and works with Bazel and distributed builds.

AI-written summary · about

  1. 0:00Intro
  2. 1:01Traditional Compilation
  3. 2:10LLVM LTO: in a Nutshell
  4. 5:41Example
  5. 7:29Monolithic LTO: No Free Lunch!
  6. 9:39ThinLTO: Design
  7. 22:49ThinLTO WFA Complio Time Opomization Weak Linkage Resolution
  8. 25:13ThinLTO WPA: Dead Global Pruning
  9. 26:49Profile Guided Optimization (PGO)
  10. 33:50Serial Step Comparisons
  11. 38:34Performance: Memory Consumption vs Paralelism
  12. 42:15Implications for C++ Developers
  13. 45:23Future Work
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.