diff options
author | Lei Wang <wlei@fb.com> | 2024-10-31 21:28:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-31 21:28:13 -0700 |
commit | bef3b54ea10a564a2de72f658f2efd64f537c079 (patch) | |
tree | 65b3d27b88b8b6f756966ab004005e95b036f0f9 /llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp | |
parent | 96b14f2ccb749010daea7a67963abed83456318c (diff) | |
download | llvm-bef3b54ea10a564a2de72f658f2efd64f537c079.zip llvm-bef3b54ea10a564a2de72f658f2efd64f537c079.tar.gz llvm-bef3b54ea10a564a2de72f658f2efd64f537c079.tar.bz2 |
[InstrPGO] Avoid using global variable to fix potential data race (#114364)
In https://github.com/llvm/llvm-project/pull/109837, it sets a global
variable(`PGOInstrumentColdFunctionOnly`) in PassBuilderPipelines.cpp
which introduced a data race detected by TSan. To fix this, I decouple
the flag setting, the flags are now set
separately(`instrument-cold-function-only-path` is required to be used
with `--pgo-instrument-cold-function-only`).
Diffstat (limited to 'llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions