[llvm] [MemCpyOpt] lifetime markers reconstruction for Stack-move optimization (PR #68990)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 13 06:39:34 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 e4e02e31c24fa15456d938e9e37ee54f8202c079 f4781f132644f247ddb12beeda131c61c61735cb -- llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp b/llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
index 7e5cdd76e..963a229fd 100644
--- a/llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
+++ b/llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
@@ -1686,7 +1686,7 @@ bool MemCpyOptPass::performStackMoveOptzn(Instruction *Load, Instruction *Store,
// Reconstruction of lifetime markers.
// 1. Insert new lifetime.start to the dominator for all src and dest uses.
- // 2. Remove original markers except possibly last lifetime.end
+ // 2. Remove original markers except possibly last lifetime.end
if (!LifetimeMarkers.empty()) {
LLVMContext &C = SrcAlloca->getContext();
IRBuilder<> Builder(C);
``````````
</details>
https://github.com/llvm/llvm-project/pull/68990
More information about the llvm-commits
mailing list