aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorwlei <wlei@fb.com>2023-08-25 17:59:58 -0700
committerwlei <wlei@fb.com>2023-08-30 18:00:23 -0700
commit4bb6bbb9bf76b3314b91e146bcebd32cb0f7b567 (patch)
tree30e3d6e55dd0c3f97245b666028de2cf29fac982 /flang/lib/Frontend/CompilerInvocation.cpp
parent3365cd4544072949e64f6745575be19346ff04a7 (diff)
downloadllvm-4bb6bbb9bf76b3314b91e146bcebd32cb0f7b567.zip
llvm-4bb6bbb9bf76b3314b91e146bcebd32cb0f7b567.tar.gz
llvm-4bb6bbb9bf76b3314b91e146bcebd32cb0f7b567.tar.bz2
[CSSPGO] Skip reporting staleness metrics for imported functions
Accumulating the staleness metrics from per-link is less accurate than doing it from post-link time(assuming we use the offline profile mismatch as baseline), the reason is that there are some duplicated reports for the same functions, for example, one template function could be included in multiple TUs, but in post thin link time, only one function are kept(linkonce_odr) and others are marked as available-externally function. Hence, this change skips reporting the metrics for imported functions(available-externally). I saw the post-link number is now very close to the offline number(dump the mismatched functions and count the metrics offline based on the entire profile), sightly smaller than offline number due to some missing inlined functions. Reviewed By: hoy, wenlei Differential Revision: https://reviews.llvm.org/D156725
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions