[clang] [llvm] [Clang]: Enable speculative devirtualization (PR #159685)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 25 07:35:29 PST 2025
================
@@ -1641,6 +1642,24 @@ PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level,
if (!LTOPreLink)
MPM.addPass(RelLookupTableConverterPass());
+ if (PTO.DevirtualizeSpeculatively && LTOPhase == ThinOrFullLTOPhase::None) {
----------------
teresajohnson wrote:
Nevermind, this isn't the right place to add the LTO speculative devirt support so a TODO doesn't make sense. Current comment is fine.
https://github.com/llvm/llvm-project/pull/159685
More information about the llvm-commits
mailing list