[clang] [llvm] [CoroSplit] Rise lifetime.end to get smaller frame size (PR #143333)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 8 19:28:56 PDT 2025


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 -- clang/test/CodeGenCoroutines/pr56919.cpp llvm/lib/Transforms/Coroutines/CoroFrame.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
index fb56832de..00d3f7b56 100644
--- a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
@@ -1902,8 +1902,7 @@ static void riseLifetimeEndMarkers(Function &F, const coro::Shape &Shape) {
       else if (mayEscape(AI, U)) {
         Escape = true;
         break;
-      }
-      else
+      } else
         UserBBs.insert(I->getParent());
     }
 

``````````

</details>


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


More information about the llvm-commits mailing list