[clang] [llvm] [WPD]: Apply speculative WPD in non-lto mode. (PR #145031)

Hassnaa Hamdi via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 21 09:45:15 PDT 2025


hassnaaHamdi wrote:

About the failing test, after modifying the Microsoft ABI to allow emitting vtable MD -similarly to what I did for Itanium ABI-, I found out that the GlobalOpt pass can't eliminate the generated unused Vtable aliases because their linkage is `ExternalLinkage` which is explicitly set by the Microsoft ABI.
That is according to the logic at: `MicrosoftCXXABI::getAddrOfVTable(..)`.
So, I think the solution for the failing test is to explicitly add a target to exclude running for windows.
But that seems like devirtulalizaiton will not be enabled for windows!

https://github.com/llvm/llvm-project/pull/145031


More information about the llvm-commits mailing list