[clang] [llvm] [WPD] Enable speculative devirtualization with LTO (PR #233380)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 19 08:55:36 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:
Is there a reason though we would want to keep both the `-enable-devirtualize-speculatively` and the `devirtualize-speculatively` backend flags? It seems like it would be simpler to just have one control everything.
https://github.com/llvm/llvm-project/pull/233380
More information about the cfe-commits
mailing list