[PATCH] D117788: [llvm-mca] Improve barriers for strict region marking (PR52198)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 21 03:25:28 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG0ca426d6ac65: [llvm-mca] Improve barriers for strict region marking (PR52198) (authored by RKSimon).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D117788

Files:
  llvm/docs/CommandGuide/llvm-mca.rst


Index: llvm/docs/CommandGuide/llvm-mca.rst
===================================================================
--- llvm/docs/CommandGuide/llvm-mca.rst
+++ llvm/docs/CommandGuide/llvm-mca.rst
@@ -299,9 +299,9 @@
 .. code-block:: c++
 
   int foo(int a, int b) {
-    __asm volatile("# LLVM-MCA-BEGIN foo");
+    __asm volatile("# LLVM-MCA-BEGIN foo":::"memory");
     a += 42;
-    __asm volatile("# LLVM-MCA-END");
+    __asm volatile("# LLVM-MCA-END":::"memory");
     a *= b;
     return a;
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117788.401920.patch
Type: text/x-patch
Size: 498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220121/fc5158a9/attachment.bin>


More information about the llvm-commits mailing list