Index: docs/ReleaseNotes.rst =================================================================== --- docs/ReleaseNotes.rst +++ docs/ReleaseNotes.rst @@ -51,6 +51,24 @@ clang to emit a warning or error if a function call meets one or more user-specified conditions. +- Enhanced devirtualization with + '-fstrict-vtable-pointers `_. + Clang devirtualizes across different basic blocks, like loops: + + .. code-block:: c++ + struct A { + virtual void foo(); + }; + void indirect(A &a, int n) { + for (int i = 0 ; i < n; i++) + a.foo(); + } + void test(int n) { + A a; + indirect(a, n); + } + + - ... Improvements to Clang's diagnostics