[clang] [llvm] [Clang]: Enable speculative devirtualization (PR #159685)

Hassnaa Hamdi via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 18 19:57:26 PST 2025


================
@@ -1641,6 +1642,24 @@ PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level,
   if (!LTOPreLink)
     MPM.addPass(RelLookupTableConverterPass());
 
+  if (PTO.DevirtualizeSpeculatively && LTOPhase == ThinOrFullLTOPhase::None) {
----------------
hassnaaHamdi wrote:

Sorry about the late reply, I initially thought I understood the comment, but now not 😅 

https://github.com/llvm/llvm-project/pull/159685


More information about the llvm-commits mailing list