[llvm] Remove redundant assumes (take 2) (PR #123480)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 18 13:43:33 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 4233a15c9f8e6f77a00a5770a35b70ab8a2705c6 59d3bc0d62947edce9639e9c4ac18183a1072fab --extensions cpp -- llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
index 6d2f2dff52..4067d0ad12 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -3252,7 +3252,8 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
}
if (auto *SI = dyn_cast<StoreInst>(Curr)) {
auto *PtrOpI = dyn_cast<Instruction>(SI->getPointerOperand());
- if ((SI->getPointerOperand() == RK.WasOn || (PtrOpI && WorkList.contains(PtrOpI))) &&
+ if ((SI->getPointerOperand() == RK.WasOn ||
+ (PtrOpI && WorkList.contains(PtrOpI))) &&
SI->getAlign().value() < RK.ArgValue) {
CanUseAlign = true;
break;
``````````
</details>
https://github.com/llvm/llvm-project/pull/123480
More information about the llvm-commits
mailing list