[llvm] [LSV] Merge contiguous chains across scalar types (PR #154069)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 22 12:10:42 PDT 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 HEAD~1 HEAD --extensions cpp,h -- llvm/include/llvm/Transforms/Utils/Local.h llvm/lib/Transforms/Utils/Local.cpp llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp b/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
index d128f44e7..bb69af649 100644
--- a/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
@@ -834,8 +834,9 @@ Type *Vectorizer::getChainElemTy(const Chain &C) {
if (any_of(C, [](const ChainElem &E) {
return getLoadStoreType(E.Inst)->getScalarType()->isPointerTy();
})) {
- return IntegerType::getIntNTy(F.getContext(),
- DL.getTypeSizeInBits(getLoadStoreType(C[0].Inst)->getScalarType()));
+ return IntegerType::getIntNTy(
+ F.getContext(),
+ DL.getTypeSizeInBits(getLoadStoreType(C[0].Inst)->getScalarType()));
}
for (const ChainElem &E : C)
``````````
</details>
https://github.com/llvm/llvm-project/pull/154069
More information about the llvm-commits
mailing list