github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. 
:warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp -- 
llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp 
b/llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp
index 7624bcfe3..520112367 100644
--- a/llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp
+++ b/llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp
@@ -1155,9 +1155,9 @@ bool 
SIGfx6CacheControl::insertWait(MachineBasicBlock::iterator &MI,
   }
 
   // Conservatively wait for vmcnt(0) to ensure that LDS operations and direct
-  // LDS loads from global memory cannot be reordered with respect to each 
other.
-  // This waitcnt can be safely optimized to wait for a higher vmcnt based on
-  // the number of outstanding direct LDS loads.
+  // LDS loads from global memory cannot be reordered with respect to each
+  // other. This waitcnt can be safely optimized to wait for a higher vmcnt
+  // based on the number of outstanding direct LDS loads.
   if (DirectLDSWait) {
     unsigned WaitCntImmediate = AMDGPU::encodeWaitcnt(
         IV, 0, getExpcntBitMask(IV), getLgkmcntBitMask(IV));

``````````

</details>


https://github.com/llvm/llvm-project/pull/142018
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to