[llvm] [SLP] Use known bits of each value in computeMinimumValueSizes (PR #82013)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 16 09:45:26 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 dfae16277329011aa5f1e41ecd06b9db75a0c374 19b3f18bbfe426934abd40283cfc4df03014b9dc -- llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 5cadec82a9..5bd480b93b 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -13348,7 +13348,7 @@ void BoUpSLP::computeMinimumValueSizes() {
auto NumSignBits = ComputeNumSignBits(Scalar, *DL, 0, AC, nullptr, DT);
auto NumTypeBits = DL->getTypeSizeInBits(Scalar->getType());
KnownBits Known = computeKnownBits(Scalar, *DL);
- unsigned RequiredSignBit = !Known.isNonNegative();
+ unsigned RequiredSignBit = !Known.isNonNegative();
unsigned LocalBitWidth = NumTypeBits - NumSignBits + RequiredSignBit;
MaxBitWidth = std::max<unsigned>(LocalBitWidth, MaxBitWidth);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/82013
More information about the llvm-commits
mailing list