[PATCH] D104431: [lld] Add lto-cspgo-warn-mismatch option for COFF
Yolanda via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 16 18:32:55 PDT 2021
YolandaCY created this revision.
Herald added subscribers: ormris, wenlei, dang, steven_wu, hiraditya, inglorion.
YolandaCY requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
When enable CSPGO for ThinLTO, there are profile cfg mismatch warnings that will cause lld-link errors.
The existing "no-pgo-warn-mismatch" option is not accessible by lld.
Add this lto build option to avoid the profile mismatch build failure.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D104431
Files:
lld/COFF/Config.h
lld/COFF/Driver.cpp
lld/COFF/LTO.cpp
lld/COFF/Options.td
llvm/include/llvm/LTO/Config.h
llvm/lib/LTO/LTOBackend.cpp
llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104431.352596.patch
Type: text/x-patch
Size: 4462 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210617/516ec226/attachment.bin>
More information about the llvm-commits
mailing list