[llvm] [WPD]: Enable speculative devirtualizatoin. (PR #159048)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 8 08:03:38 PDT 2025


================
@@ -226,6 +226,10 @@ struct WholeProgramDevirtPass : public PassInfoMixin<WholeProgramDevirtPass> {
   ModuleSummaryIndex *ExportSummary;
   const ModuleSummaryIndex *ImportSummary;
   bool UseCommandLine = false;
+  // True if ExportSummary was built locally from the module rather than
+  // provided externally to the pass (e.g., during LTO). Default value is false
+  // unless explicitly set when the Summary is explicitly built.
+  bool HasLocalSummary = false;
----------------
teresajohnson wrote:

I can't find where this is set. In fact, I can't find anymore where ExportSummary is being built locally?

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


More information about the llvm-commits mailing list