[llvm] [InstCombine] Remove Store when its Ptr is removable (PR #79565)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 07:22:48 PST 2024
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 6d242914d784ed848d0f87bf6df9b6b2f2b27566 9d76995e1961029f723aa8238705d8ed26bbd1c8 -- llvm/lib/Transforms/InstCombine/InstCombineInternal.h llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp b/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
index 8a02ce6091..c7eb8706aa 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
@@ -1353,9 +1353,7 @@ static bool equivalentAddressValues(Value *A, Value *B) {
return false;
}
-static bool isStoreSiteRemovable(StoreInst *SI,
- InstCombinerImpl &IC)
-{
+static bool isStoreSiteRemovable(StoreInst *SI, InstCombinerImpl &IC) {
if (canSimplifyNullStoreOrGEP(*SI) ||
!isa<Instruction>(SI->getPointerOperand()))
return false;
``````````
</details>
https://github.com/llvm/llvm-project/pull/79565
More information about the llvm-commits
mailing list