~/talk

OptView2 - Helping the Compiler Generate Better Code

Talkat C++ on Sea 2022 · 2022-07-05..07-07· [compilers-and-language-design]
links:none on file
slides:none on file

OptView2 surfaces compiler optimization remarks from Clang/LLVM as actionable HTML, focusing on failures (not internal logs), splitting large runs, and showing hotness and inlining context so you can target real bottlenecks. About half the examples are missed optimizations caused by aliasing: concrete fixes demonstrated include marking pointers restrict, passing small values by value, or using attributes like pure/const/noescape to stop loads “clobbered by store/call” and enable hoisting or vectorization, with before/after assembly and measurable speedups.

AI-written summary · about

  1. 0:00Start
  2. 5:21opt-viewer additions over -Rpass
  3. 7:13Great work, but
  4. 9:21Target Developers, Not Compiler Authors
  5. 12:46Inlining
  6. 14:57"Clobbered by store"
  7. 23:05"Clobbered by call"
  8. 32:27"Failed to move load with loop invariant address"
  9. 36:26Cheat Sheet
  10. 36:53GCC work
  11. 38:51Decorations across compilers
  12. 46:42Bottom line
~/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.