~/talk

The Magic Behind Optimizing Compilers: Static Program Analysis

Talkat Meeting C++ 2022 · 2022-11-17..11-19· [frontend-architecture]
links:none on file
slides:none on file

Shows how static analyses are actually implemented using Clang/LLVM IR, demoing constant propagation and a call‑site replacer pass that generates and rewrites LLVM instructions. Explains the IDE/exploded supergraph technique, gives the worst‑case runtime/space bounds (n·D^2 and n·n·D) and why pointers/aliasing break distributive solutions, describes using restrict and noexcept/constexpr to help optimization, and points to a working GitHub project (phaser) with real implementations and tradeoffs.

AI-written summary · about

  1. 0:00Introduction
  2. 0:21Who is Philipp Schubert
  3. 3:11Applications and Techniques
  4. 5:21How does it work
  5. 6:17Bug detection
  6. 7:57Dataflow analysis
  7. 10:07Constant propagation example
  8. 15:30Static program analysis in LLVM
  9. 18:49IR inspection in LLVM
  10. 22:21LLVM code inspection
  11. 24:22Is LLVM too good
  12. 26:57LLVM in IDE
  13. 32:41Compilers vs Static Analysis
  14. 35:15Static Analysis Challenges
  15. 39:35How to Write an Analysis
  16. 41:56How to Perform an Optimization
  17. 46:15Compilers Need Your Help
  18. 47:38Does It Help
  19. 49:37No Except
  20. 52:13Conclusions
  21. 53:22Example
  22. 54:50Conclusion
~/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.