[PATCH] D121338: [BOLT][NFC] Fix data race in shortenInstructions
Amir Ayupov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 9 13:59:57 PST 2022
Amir created this revision.
Herald added a reviewer: rafauler.
Herald added a subscriber: ayermolo.
Herald added a reviewer: maksfb.
Herald added a project: All.
Amir requested review of this revision.
Herald added subscribers: llvm-commits, yota9.
Herald added a project: LLVM.
Address ThreadSanitizer warning
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D121338
Files:
bolt/lib/Passes/BinaryPasses.cpp
Index: bolt/lib/Passes/BinaryPasses.cpp
===================================================================
--- bolt/lib/Passes/BinaryPasses.cpp
+++ bolt/lib/Passes/BinaryPasses.cpp
@@ -1015,6 +1015,7 @@
continue;
if (opts::Verbosity > 2) {
+ BC.scopeLock();
outs() << "BOLT-INFO: shortening:\nBOLT-INFO: ";
BC.printInstruction(outs(), OriginalInst, 0, &Function);
outs() << "BOLT-INFO: to:";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121338.414212.patch
Type: text/x-patch
Size: 448 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220309/35ae1240/attachment.bin>
More information about the llvm-commits
mailing list