aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorPavel Samolysov <samolisov@gmail.com>2024-10-12 06:29:55 +0300
committerGitHub <noreply@github.com>2024-10-12 06:29:55 +0300
commit23c64beeccc03c6a8329314ecd75864e09bb6d97 (patch)
tree1f37618c389b67682011f72a0e692ea3d2479041 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent9bf2e20b17e4199d871d4622fbe43b5a2a52b513 (diff)
downloadllvm-23c64beeccc03c6a8329314ecd75864e09bb6d97.zip
llvm-23c64beeccc03c6a8329314ecd75864e09bb6d97.tar.gz
llvm-23c64beeccc03c6a8329314ecd75864e09bb6d97.tar.bz2
[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.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions