aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorEllis Hoag <ellis.sparky.hoag@gmail.com>2023-09-11 09:13:55 -0700
committerGitHub <noreply@github.com>2023-09-11 09:13:55 -0700
commit30e688e6d061bf0f2a6fcbe39d2d23560a363436 (patch)
treec4322df45944892c993915f7e55b893b66761e28 /llvm/lib/CodeGen/MachineInstr.cpp
parent3125bd4bc7367a05ddf5477793a1ee51cecc3046 (diff)
downloadllvm-30e688e6d061bf0f2a6fcbe39d2d23560a363436.zip
llvm-30e688e6d061bf0f2a6fcbe39d2d23560a363436.tar.gz
llvm-30e688e6d061bf0f2a6fcbe39d2d23560a363436.tar.bz2
[lld][MachO] Add option to suppress mismatch profile errors (#65551)
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` https://github.com/llvm/llvm-project/blob/3df1a64ebad8f31231ba05cf6ff43a985fea9235/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp#L210 but that is set to true by default during LTO https://github.com/llvm/llvm-project/blob/3df1a64ebad8f31231ba05cf6ff43a985fea9235/llvm/include/llvm/LTO/Config.h#L76-L77
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions