[lld][MachO] Add option to suppress mismatch profile errors #65551
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Both ELF and COFF support
--no-lto-pgo-warn-mismatch
in https://reviews.llvm.org/D104431 to suppress warnings due to mismatching profile hashes. As profiles go stale, it becomes likely that some function's CFGs will change so that their profiles can no longer be used. This commit adds the linker option--no-pgo-warn-mismatch
to suppress these warnings.Note that we do have the LLVM backend flag
no-pgo-warn-mismatch
(llvm-project/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
Line 210 in 3df1a64
llvm-project/llvm/include/llvm/LTO/Config.h
Lines 76 to 77 in 3df1a64