aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2020-12-07 17:13:49 -0800
committerTeresa Johnson <tejohnson@google.com>2020-12-08 07:45:36 -0800
commit77b509710ce7e6aec9ab460bc22a34f44fa94ab3 (patch)
tree2bea0809001d85f05e631a925ae473b1eb415005 /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
parent02c9050155dff70497b3423ae95ed7d2ab7675a8 (diff)
downloadllvm-77b509710ce7e6aec9ab460bc22a34f44fa94ab3.zip
llvm-77b509710ce7e6aec9ab460bc22a34f44fa94ab3.tar.gz
llvm-77b509710ce7e6aec9ab460bc22a34f44fa94ab3.tar.bz2
[ICP] Don't promote when target not defined in module
This guards against cases where the symbol was dead code eliminated in the binary by ThinLTO, and we have a sample profile collected for one binary but used to optimize another. Most of the benefit from ICP comes from inlining the target, which we can't do with only a declaration anyway. If this is in the pre-ThinLTO link step (e.g. for instrumentation based PGO), we will attempt the promotion again in the ThinLTO backend after importing anyway, and we don't need the early promotion to facilitate that. Differential Revision: https://reviews.llvm.org/D92804
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions