~/talk

LLVM Optimization Remarks

Talkat CppCon 2022 · 2022-09-11..09-16· [rust]
links:none on file
slides:none on file

A practical tour of optimization remarks shows a working toolchain: use opt-viewer (HTML output, Compiler Explorer panel) to turn Clang’s YAML logs into line‑annotated reports; about half the examples reproduce missed optimizations and many yield large wins. Most failures trace to alias or escape analysis — e.g. clobbered by store and pointer escape — and fixes include restrict, copying to locals, or attributes like pure/const/noescape. Opt‑viewer works but is memory heavy; examples are concrete and immediately actionable.

AI-written summary · about

  1. 0:00Introduction to Remarks
  2. 2:03Tools for Visualization
  3. 4:22Configuration and Features
  4. 7:15Modernizing the Workflow
  5. 9:42Remarks in Compiler Explorer
  6. 10:34Inlining Analysis
  7. 13:07Aliasing Issues
  8. 17:12Strict Aliasing
  9. 19:11Const misconceptions
  10. 20:53Pointer Escape
  11. 23:46Mitigating Escape
  12. 27:46Limitations and LTO
  13. 30:10Loop Invariants
  14. 34:02Interpreting Clang Output
  15. 36:42LTO Building Hacks
  16. 39:24GCC Remark Support
  17. 41:00Cross-Compiler Strategies
  18. 42:59Rust and Carbon
  19. 45:22Performance Impact
  20. 48:20Future and Conclusion
~/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.