[clang] [llvm] [WPD] Enable speculative devirtualization with LTO (PR #233380)
Hassnaa Hamdi via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 19 05:56:42 PDT 2026
================
@@ -1620,8 +1620,7 @@ PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level,
MPM.addPass(AssignGUIDPass());
MPM.addPass(WholeProgramDevirtPass(
/*ExportSummary*/ nullptr,
- /*ImportSummary*/ nullptr,
- /*DevirtSpeculatively*/ PTO.DevirtualizeSpeculatively));
----------------
hassnaaHamdi wrote:
Why did you remove this ?
I think the WPD pass won't be able to know if that feature is enabled or not.
Could you try testing this https://godbolt.org/z/qP9dKTjzs with/out lto ?
https://github.com/llvm/llvm-project/pull/233380
More information about the cfe-commits
mailing list