[clang] [llvm] [Clang]: Enable speculative devirtualization (PR #159685)
Hassnaa Hamdi via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 18 19:56:19 PST 2025
================
@@ -1641,6 +1642,24 @@ PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level,
if (!LTOPreLink)
MPM.addPass(RelLookupTableConverterPass());
+ if (PTO.DevirtualizeSpeculatively && LTOPhase == ThinOrFullLTOPhase::None) {
----------------
hassnaaHamdi wrote:
Sorry, TODO about what ? This check here is because that if LTO is enabled, the WPD pass will be already added to the LTO pipeline, so we should not add it again here.
https://github.com/llvm/llvm-project/pull/159685
More information about the llvm-commits
mailing list