[clang] [llvm] [WPD]: Apply speculative WPD in non-lto mode. (PR #145031)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 4 10:56:25 PDT 2025
================
@@ -98,6 +98,12 @@ class PipelineTuningOptions {
// analyses after various module->function or cgscc->function adaptors in the
// default pipelines.
bool EagerlyInvalidateAnalyses;
+
+ /// Tuning option to enable/disable whole program devirtualization.
+ /// Its default value is false.
+ /// This is controlled by the `-whole-program-vtables` flag.
+ /// Used only in non-LTO mode.
+ bool WholeProgramDevirt;
----------------
teresajohnson wrote:
Change this to match the proposed new option, and make it independent of LTO. We can presumably use this to do the speculative devirtualization when we are in LTO mode but don't have whole program visibility too.
https://github.com/llvm/llvm-project/pull/145031
More information about the llvm-commits
mailing list