Someone recently asked me about devirtualization optimizations: when do they happen? when can we rely on devirtualization? do different compilers do devirtualization differently? As usual, this led me down an experimental rabbit-hole. The answer seems to


lemire.me5mo ago
Sometimes compilers can surprise and delight even a jaded old engineer like me
Inlining doesn't have to be all-or-nothing





discourse.llvm.org10mo ago
