[llvm] [SLP]Improve isGatherShuffledEntry by trying per-register shuffle. (PR #66542)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 5 09:34:33 PDT 2023
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 77feba5a92a8526d237abb6fe778d63a4a9ba5b7 ebe5674fc743461e03c9ff88f470683ce809573e -- 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 0932bc154140..141d6ee80343 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -9465,8 +9465,8 @@ BoUpSLP::isGatherShuffledSingleRegisterEntry(
Entries.swap(TempEntries);
if (EntryLanes.size() == Entries.size() &&
!VL.equals(ArrayRef(TE->Scalars)
- .slice(Part * VL.size(),
- std::min<int>(VL.size(), TE->Scalars.size())))) {
+ .slice(Part * VL.size(),
+ std::min<int>(VL.size(), TE->Scalars.size())))) {
// We may have here 1 or 2 entries only. If the number of scalars is equal
// to the number of entries, no need to do the analysis, it is not very
// profitable. Since VL is not the same as TE->Scalars, it means we already
``````````
</details>
https://github.com/llvm/llvm-project/pull/66542
More information about the llvm-commits
mailing list