Presented by Ofek Shilon at Core C++ 2021 conference.
How can you tell if a function was inlined? How do you know whether a variable was optimized out? A typical developer would say that, regrettably, one must look on disassembly - but for 5 years now, this answer is incorrect. Enter opt-viewer: a little known LLVM tool that generates concise, actionable optimization reports as source code markup. If you care about performance, you should probably know this tool (and if not, you should probably change your programming language to something other than C++).
=====
Ofek is C++ developer, manager and blogger for 15y. Manages a continuous love-hate relationship with the language.