[clang] [llvm] [WPD]: Apply speculative WPD in non-lto mode. (PR #145031)
Hassnaa Hamdi via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 9 10:03:34 PDT 2025
================
@@ -1629,6 +1630,23 @@ PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level,
if (!LTOPreLink)
MPM.addPass(RelLookupTableConverterPass());
+ if (PTO.WholeProgramDevirt && LTOPhase == ThinOrFullLTOPhase::None) {
----------------
hassnaaHamdi wrote:
Hi Teresa, thanks for looking at the patch.
It's okay to enable it by default. I just added the flag as a first step.
https://github.com/llvm/llvm-project/pull/145031
More information about the llvm-commits
mailing list