[llvm] [MemProf] Tolerate missing leaf debug frames (PR #71233)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 3 16:40:28 PDT 2023


================
@@ -733,47 +733,52 @@ void PassBuilder::addRequiredLTOPreLinkPasses(ModulePassManager &MPM) {
   MPM.addPass(NameAnonGlobalPass());
 }
 
-void PassBuilder::addPGOInstrPasses(ModulePassManager &MPM,
-                                    OptimizationLevel Level, bool RunProfileGen,
-                                    bool IsCS, bool AtomicCounterUpdate,
-                                    std::string ProfileFile,
-                                    std::string ProfileRemappingFile,
-                                    ThinOrFullLTOPhase LTOPhase,
-                                    IntrusiveRefCntPtr<vfs::FileSystem> FS) {
+void PassBuilder::addPreInlinerPasses(ModulePassManager &MPM,
+                                      OptimizationLevel Level,
+                                      ThinOrFullLTOPhase LTOPhase) {
   assert(Level != OptimizationLevel::O0 && "Not expecting O0 here!");
-  if (!IsCS && !DisablePreInliner) {
-    InlineParams IP;
+  if (DisablePreInliner)
----------------
teresajohnson wrote:

I don't know the history. Could be for debugging? I'm not really sure and didn't want to change any of the existing logic for the PGO instrumentation handling.

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


More information about the llvm-commits mailing list