[llvm] [APInt] Remove accumulator initialization from tcMultiply and tcFullMultiply. NFCI (PR #88202)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 9 14:56:41 PDT 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 d3016aa889ac12fd8a047d68fed2ddaca107b990 a246993c3f3c766c1e6055d062f1d2e721b630f2 -- llvm/lib/Support/APInt.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp
index 599c08a3c2..18feca4c05 100644
--- a/llvm/lib/Support/APInt.cpp
+++ b/llvm/lib/Support/APInt.cpp
@@ -2589,8 +2589,8 @@ int APInt::tcMultiply(WordType *dst, const WordType *lhs,
for (unsigned i = 0; i < parts; i++) {
// Don't accumulate on the first iteration so we don't need to initalize
// dst to 0.
- overflow |= tcMultiplyPart(&dst[i], lhs, rhs[i], 0, parts,
- parts - i, i != 0);
+ overflow |=
+ tcMultiplyPart(&dst[i], lhs, rhs[i], 0, parts, parts - i, i != 0);
}
return overflow;
``````````
</details>
https://github.com/llvm/llvm-project/pull/88202
More information about the llvm-commits
mailing list