OSDN Git Service

[PGO] Use SourceFileName rather module name in PGOFuncName
authorRong Xu <xur@google.com>
Tue, 8 Jan 2019 22:39:47 +0000 (22:39 +0000)
committerRong Xu <xur@google.com>
Tue, 8 Jan 2019 22:39:47 +0000 (22:39 +0000)
commitd7d79030fba0887c010619b4b7752c908f20a24e
treeee374f50a2c67f4ed456e12e4551addabe994a5b
parent5f281ed0fca13cb5f03e89e7e663a0ef716723de
[PGO] Use SourceFileName rather module name in PGOFuncName

In LTO or Thin-lto mode (though linker plugin), the module
names are of temp file names which are different for
different compilations. Using SourceFileName avoids the issue.
This should not change any functionality for current PGO as
all the current callers of getPGOFuncName() is before LTO.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350671 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ProfileData/InstrProf.cpp