Go to file
Teresa Johnson 525dcb617b Fix update VP metadata after inlining for instrumentation PGO
Summary:
With instrumentation profiling, when updating the VP metadata after
an inline, VP metadata on the inlined copy was inadvertantly having
all counts zeroed out. This was causing indirect calls from code inlined
during the call step to be marked as cold in the ThinLTO summaries and
not imported.

The CallerBFI needs to be passed down so that the CallSiteCount can be
computed from the profile summary info. With Sample PGO this was working
since the count is extracted from the branch weight metadata on the
call being inlined (even before we stopped looking at metadata for
non-sample PGO in r302844 this largely wasn't working for instrumentation
PGO since only promoted indirect calls would be getting inlined and have
the metadata).

Added an instrumentation PGO test and renamed the sample PGO test.

Reviewers: danielcdh, eraman

Subscribers: mehdi_amini, llvm-commits

Differential Revision: https://reviews.llvm.org/D33389

llvm-svn: 303574
2017-05-22 20:28:18 +00:00
clang [coroutines] Build GRO declaration and return GRO statement 2017-05-22 20:22:23 +00:00
clang-tools-extra [clang-tidy] misc-move-const-arg shouldn't complain on std::move(lambda) 2017-05-22 14:30:14 +00:00
compiler-rt [XRay][compiler-rt] Add __xray_remove_customevent_handler(...) 2017-05-22 03:23:54 +00:00
debuginfo-tests Add additional CHECKs to safestack.c. 2017-04-17 17:57:05 +00:00
libclc math: Implement sinh function 2017-02-25 02:46:53 +00:00
libcxx [test] Add support for Objective-C++ tests 2017-05-19 23:02:49 +00:00
libcxxabi [libcxxabi] Fix the test case committed in r303175. 2017-05-16 18:18:03 +00:00
libunwind [libunwind] Fix executable stack directive on Linux. 2017-05-16 20:18:57 +00:00
lld Revert r303304: Re-submit r303225: Garbage collect dllimported symbols. 2017-05-22 06:01:37 +00:00
lldb Fix incorrect Status -> Error rename in IOHandler 2017-05-22 14:13:38 +00:00
llgo benchcomp: Add a mode for analyzing file sizes. 2017-04-03 19:13:12 +00:00
llvm Fix update VP metadata after inlining for instrumentation PGO 2017-05-22 20:28:18 +00:00
openmp Fix for KMP_AFFINITY=respect with multiple processor groups 2017-05-15 19:05:59 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [CodeGen] Add invalidation of the loop SCEVs after merge block generation. 2017-05-22 15:36:53 +00:00