Whole-program devirtualization
Devirtualization done at link time, when the compiler can see the entire class hierarchy and prove which methods exist at all.
Working on one file, a C++ compiler rarely knows whether some other file derives from a class and overrides a method. Under LTO every file is on the table, but only if you also promise that no class outside the LTO unit inherits from anything inside it. Clang takes that promise as -fwhole-program-vtables; the machinery went into LLVM around 2016, built by Peter Collingbourne at Google, and the same type metadata powers Clang's control-flow integrity checks.
The easy case is a virtual method with exactly one implementation: the call becomes direct and can be inlined. The cleverer trick is virtual constant propagation. If every implementation just returns a constant, the values are laid out next to the vtable and the call turns into a memory load. GCC has its own take built on the type inheritance graph. Break the promise — say, with a plugin that subclasses — and you get wrong code, not slow code.