================
@@ -1620,8 +1620,7 @@ 
PassBuilder::buildModuleOptimizationPipeline(OptimizationLevel Level,
     MPM.addPass(AssignGUIDPass());
     MPM.addPass(WholeProgramDevirtPass(
         /*ExportSummary*/ nullptr,
-        /*ImportSummary*/ nullptr,
-        /*DevirtSpeculatively*/ PTO.DevirtualizeSpeculatively));
----------------
teresajohnson wrote:

I'd rather not remove the ctor argument. Deleting it is what forces the driver 
to emit -mllvm -devirtualize-speculatively for the non-LTO case. Having the 
driver pass -mllvm flags is something we generally avoid (other than plugin 
options for LTO). I think the DevirtSpeculatively member can change to an OR of 
PTO.DevirtualizeSpeculatively and the cl::opt to handle the LTO case?

https://github.com/llvm/llvm-project/pull/233380
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to