[llvm] [SLP]Improve masked loads vectorization, attempting gathered loads (PR #110151)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 26 11:14:02 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 9abf6d3506c7289e062836cb9f70a9eaa56bcb68 e4768e045c2f56ccfdf0cbeeaacb0cacd754fb22 --extensions cpp -- 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 62c77704d9..875e515691 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -6968,8 +6968,7 @@ void BoUpSLP::tryToVectorizeGatheredLoads(
// Try to vectorize postponed load entries, previously marked as gathered.
for (unsigned Idx : LoadEntriesToVectorize) {
const TreeEntry &E = *VectorizableTree[Idx];
- SmallVector<Value *> GatheredScalars(E.Scalars.begin(),
- E.Scalars.end());
+ SmallVector<Value *> GatheredScalars(E.Scalars.begin(), E.Scalars.end());
// Avoid reordering, if possible.
if (!E.ReorderIndices.empty()) {
// Build a mask out of the reorder indices and reorder scalars per this
``````````
</details>
https://github.com/llvm/llvm-project/pull/110151
More information about the llvm-commits
mailing list