HomePhabricator

[PGO] Use SourceFileName rather module name in PGOFuncName

Description

[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.

Details

Committed
xurFri, Jan 4, 2:54 PM
Differential Revision
D56327: [PGO] Use SourceFileName rather module name in PGOFuncName
Parents
rL350441: [OpenMP] Refactor const restriction for linear
Branches
Unknown
Tags
Unknown