[llvm] [SLP] Initial vectorization of non-power-of-2 ops. (PR #77790)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 03:29:35 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 471a6128901747130ae11ce87b6e0095f862ed9a fb1c7be20d558dab9a4ca7d0897d38524de5dc14 -- 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 15a211d7ad..e9de536539 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -7644,8 +7644,8 @@ class BoUpSLP::ShuffleCostEstimator : public BaseShuffleAnalysis {
for (unsigned I = 0, End = VL.size(); I < End; I += VF) {
if (VectorizedLoads.contains(VL[I]))
continue;
- GatherCost += getBuildVectorCost(
- VL.slice(I, std::min(End - I, VF)), Root);
+ GatherCost +=
+ getBuildVectorCost(VL.slice(I, std::min(End - I, VF)), Root);
}
// Exclude potentially vectorized loads from list of gathered
// scalars.
``````````
</details>
https://github.com/llvm/llvm-project/pull/77790
More information about the llvm-commits
mailing list