[llvm] [coro][pgp] Do not insert counters in the `suspend` block (PR #71262)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 3 18:55:21 PDT 2023


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 2d460f25f14db38e566810040806c95f9edd78b5 41ecae9e95412eebfc45d580e1eead398fa9ec4a -- llvm/include/llvm/Transforms/Instrumentation/CFGMST.h
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/Transforms/Instrumentation/CFGMST.h b/llvm/include/llvm/Transforms/Instrumentation/CFGMST.h
index eddfbd8a8e45..1c5b7ba6d0ed 100644
--- a/llvm/include/llvm/Transforms/Instrumentation/CFGMST.h
+++ b/llvm/include/llvm/Transforms/Instrumentation/CFGMST.h
@@ -186,7 +186,7 @@ public:
           if (IsCoroSuspendTarget)
             E->Removed = true;
           LLVM_DEBUG(dbgs() << "  Edge: from " << BB.getName() << " to "
-                          << TargetBB->getName() << "  w=" << Weight << "\n");          
+                            << TargetBB->getName() << "  w=" << Weight << "\n");
           // Keep track of entry/exit edges:
           if (&BB == Entry) {
             if (Weight > MaxEntryOutWeight) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/71262


More information about the llvm-commits mailing list