[PATCH] D93656: Moving UniqueInternalLinkageNamesPass to the start of IR pipelines.
Hongtao Yu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 21 11:43:31 PST 2020
hoy created this revision.
Herald added subscribers: dexonsmith, wenlei, hiraditya.
hoy requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.
`UniqueInternalLinkageNamesPass` is useful to CSSPGO, especially when pseudo probe is used. It solves naming conflict for static functions which otherwise will share a merged profile and likely have a profile quality issue with mismatched CFG checksums. Since the pseudo probe instrumentation happens very early in the pipeline, I'm moving `UniqueInternalLinkageNamesPass` right before it. This is being done only to the new pass manager. In addition, funtions that are renamed have their debug linkage name and an AutoFDO attribute updated optionally.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D93656
Files:
clang/lib/CodeGen/BackendUtil.cpp
clang/test/CodeGen/unique-internal-linkage-names.cpp
llvm/include/llvm/IR/DebugInfoMetadata.h
llvm/include/llvm/Passes/PassBuilder.h
llvm/lib/IR/DebugInfoMetadata.cpp
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Transforms/Utils/UniqueInternalLinkageNames.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93656.313167.patch
Type: text/x-patch
Size: 8082 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201221/bba5784a/attachment.bin>
More information about the cfe-commits
mailing list