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

Hassnaa Hamdi via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 31 03:05:21 PDT 2025


================
@@ -1629,6 +1630,23 @@ PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level,
   if (!LTOPreLink)
     MPM.addPass(RelLookupTableConverterPass());
 
+  if (PTO.WholeProgramDevirt && LTOPhase == ThinOrFullLTOPhase::None) {
----------------
hassnaaHamdi wrote:

I have that check to void running passes that are not needed if the option is not enabled, not only the Inliner pass, but also the WPD and LowerTypeTests pass.

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


More information about the llvm-commits mailing list