[llvm] [DSE] Update dereferenceable attributes when adjusting memintrinsic ptr (PR #125073)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 30 07:37:42 PST 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 2f401458266ccd493802e603e3089dca61f8cf6e 6b014c5c66d79ef99e3a7b4ddd6f6be99c781627 --extensions h,cpp -- llvm/include/llvm/IR/InstrTypes.h llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
index c16134e3f0..50f964411a 100644
--- a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
@@ -579,7 +579,6 @@ static void trimDereferencableAttrs(AnyMemIntrinsic *Intrinsic, unsigned Arg,
     Intrinsic->removeParamAttr(Arg, Attribute::DereferenceableOrNull);
 }
 
-
 static bool tryToShorten(Instruction *DeadI, int64_t &DeadStart,
                          uint64_t &DeadSize, int64_t KillingStart,
                          uint64_t KillingSize, bool IsOverwriteEnd) {

``````````

</details>


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


More information about the llvm-commits mailing list