[PATCH] Optimize pointers to member function
John McCall
rjmccall at apple.com
Thu Feb 14 11:05:28 PST 2013
On Feb 14, 2013, at 3:57 AM, Olivier Goffart <ogoffart at kde.org> wrote:
> This patch optimize comparison and calling of pointers to member function.
>
> If we know that a given class do not have multiple inheritance, we can
> simplify the comparison and the calls as the pointer to this will never be
> shifted.
> On the Microsoft ABI (which is not implemented in clang), the size of a
> pointer to a member function is even reduced in that case.[1]
A pointer-to-member may point to a member of a derived class.
John.
More information about the cfe-commits
mailing list