[llvm] [SLP]Check if masked gather can be emitted as a serie of loads/insert (PR #83481)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 29 13:15:11 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 45d82f33af9334907dde39cc69921c679299114e 44757efeb7372c5520a1412165feb70eea6940cc -- 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 f817d1a304..b417b476f6 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -7414,9 +7414,9 @@ class BoUpSLP::ShuffleCostEstimator : public BaseShuffleAnalysis {
!VectorizedLoads.count(Slice.back()) && allSameBlock(Slice)) {
SmallVector<Value *> PointerOps;
OrdersType CurrentOrder;
- LoadsState LS = canVectorizeLoads(R, Slice, Slice.front(), TTI,
- *R.DL, *R.SE, *R.LI, *R.TLI,
- CurrentOrder, PointerOps);
+ LoadsState LS =
+ canVectorizeLoads(R, Slice, Slice.front(), TTI, *R.DL, *R.SE,
+ *R.LI, *R.TLI, CurrentOrder, PointerOps);
switch (LS) {
case LoadsState::Vectorize:
case LoadsState::ScatterVectorize:
``````````
</details>
https://github.com/llvm/llvm-project/pull/83481
More information about the llvm-commits
mailing list