[all-commits] [llvm/llvm-project] 23c64b: [PGO] Preserve analysis results when nothing was i...

Pavel Samolysov via All-commits all-commits at lists.llvm.org
Fri Oct 11 20:30:16 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 23c64beeccc03c6a8329314ecd75864e09bb6d97
      https://github.com/llvm/llvm-project/commit/23c64beeccc03c6a8329314ecd75864e09bb6d97
  Author: Pavel Samolysov <samolisov at gmail.com>
  Date:   2024-10-12 (Sat, 12 Oct 2024)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
    M llvm/unittests/Transforms/Instrumentation/PGOInstrumentationTest.cpp

  Log Message:
  -----------
  [PGO] Preserve analysis results when nothing was instrumented (#93421)

The `PGOInstrumentationGen` pass should preserve all analysis results
when nothing was actually instrumented. Currently, only modules that
contain at least a single function definition are instrumented. When a
module contains only function declarations and, optionally, global
variable definitions (a module for the regular-LTO phase for thin-LTO
when LTOUnit splitting is enabled, for example), such module is not
instrumented (yet?) and there is no reason to invalidate any analysis
results.

NFC.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list