[PATCH] D121338: [BOLT] Fix data race in shortenInstructions

Amir Ayupov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 13 11:10:44 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGbad3798113f8: [BOLT] Fix data race in shortenInstructions (authored by Amir).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121338/new/

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.422573.patch
Type: text/x-patch
Size: 448 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220413/fb05a23b/attachment-0001.bin>


More information about the llvm-commits mailing list