r292112 - Add -fstrict-vtable-pointers to UsersManual
Piotr Padlewski via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 16 05:20:09 PST 2017
Date: Mon Jan 16 07:20:08 2017
New Revision: 292112
Add -fstrict-vtable-pointers to UsersManual
Summary: Add missing flag to UsersManual
It would be good to merge it to 4.0 branch.
Differential Revision: https://reviews.llvm.org/D28727
--- cfe/trunk/docs/UsersManual.rst (original)
+++ cfe/trunk/docs/UsersManual.rst Mon Jan 16 07:20:08 2017
@@ -1097,6 +1097,13 @@ are listed below.
the behavior of sanitizers in the ``cfi`` group to allow checking
of cross-DSO virtual and indirect calls.
+.. option:: -fstrict-vtable-pointers
+ Enable optimizations based on the strict rules for overwriting polymorphic
+ C++ objects, i.e. the vptr is invariant during an object's lifetime.
+ This enables better devirtualization. Turned off by default, because it is
+ still experimental.
.. option:: -ffast-math
Enable fast-math mode. This defines the ``__FAST_MATH__`` preprocessor
More information about the cfe-commits