[clang] [llvm] Enable WPD without lto (PR #141777)

Teresa Johnson via cfe-commits cfe-commits at lists.llvm.org
Thu May 29 07:43:11 PDT 2025


teresajohnson wrote:

This is an interesting idea, thanks for the performance numbers. It could also be useful for LTO without whole program visibility enabled, where most of the vtables and type tests will end up with public visibility making them ineligible for WPD. But I suspect it may not be profitable when there is any type of PGO, which will cause speculative devirtualization to be applied for profiled indirect calls via ICP. Can you share the detailed SPEC performance results?

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


More information about the cfe-commits mailing list