[all-commits] [llvm/llvm-project] f2b502: [clang] Allow devirtualisation of indirect calls t...
Oliver Hunt via All-commits
all-commits at lists.llvm.org
Mon Oct 27 17:40:47 PDT 2025
Branch: refs/heads/users/ojhunt/indirect-vcall-via-base-opt
Home: https://github.com/llvm/llvm-project
Commit: f2b5020e406c521dd185659c04817be0e5c97e3e
https://github.com/llvm/llvm-project/commit/f2b5020e406c521dd185659c04817be0e5c97e3e
Author: Oliver Hunt <oliver at apple.com>
Date: 2025-10-27 (Mon, 27 Oct 2025)
Changed paths:
M clang/lib/CodeGen/CodeGenFunction.cpp
A clang/test/CodeGenCXX/indirect-final-vcall-through-base.cpp
Log Message:
-----------
[clang] Allow devirtualisation of indirect calls to final virtual methods
When -fstrict-vtable-pointers is set we can devirtualise calls to
virtual functions when called indirectly through a separate function
that does not locally know the exact type it is operating on.
This only permits the optimization for regular methods, not any kind
of constructor or destructor.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list