This patch adds support in profile runtime to allow user change the root directory of the profile. It uses a machanism compatible to libgcc: GCOV_PREFIX and GCOV_PREFIX_STRIP.
It also helps users to easily migrate to use LLVM PGO.
Paths
| Differential D36648
[PGO] Add support for profile dumping dir relocation AcceptedPublic Authored by davidxl on Aug 12 2017, 1:54 PM.
Details
Diff Detail Event TimelineComment Actions Lgtm, although I think the line-wrapping on the added RUN lines needs to be corrected. Comment Actions Lgtm.
This revision is now accepted and ready to land.Aug 14 2017, 6:45 PM
Revision Contents
Diff 111007 lib/profile/InstrProfilingFile.c
lib/profile/InstrProfilingUtil.c
test/profile/instrprof-path.c
|
Nit: the call is sunk to the branch, why not getting rid of SelectPat and PNS variable?
Also to the third calls.