[llvm] [WPD]: Enable speculative devirtualizatoin. (PR #159048)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 25 12:50:52 PDT 2025
================
@@ -2350,6 +2392,11 @@ bool DevirtModule::run() {
Function *TypeTestFunc =
Intrinsic::getDeclarationIfExists(&M, Intrinsic::type_test);
+ // If we are in speculative devirtualization mode, we can work on the public
+ // type test intrinsics.
+ if (!TypeTestFunc && DevirtSpeculatively)
----------------
teresajohnson wrote:
Also, can you add a TODO to updatePublicTypeTestCalls to not drop the public type tests if we have enabled speculative devirtualization? That will be required to support this for LTO.
https://github.com/llvm/llvm-project/pull/159048
More information about the llvm-commits
mailing list