[clang] [llvm] [WPD] Enable speculative devirtualization with LTO (PR #233380)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 19 08:52:50 PDT 2026
================
@@ -1620,8 +1620,7 @@ PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level,
MPM.addPass(AssignGUIDPass());
MPM.addPass(WholeProgramDevirtPass(
/*ExportSummary*/ nullptr,
- /*ImportSummary*/ nullptr,
- /*DevirtSpeculatively*/ PTO.DevirtualizeSpeculatively));
----------------
KRM7 wrote:
Yep, I missed that the flag is not set for the non-lto case, will fix.
https://github.com/llvm/llvm-project/pull/233380
More information about the cfe-commits
mailing list