[llvm] [SLP] no need to generate extract for in-tree uses for original scala… (PR #76077)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 26 18:10:46 PST 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 66922a566bc29d9d9cc056964cb5d1c868da1ea3 721914da49ffa2111ca4e7f9199b8038c6907260 -- 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 eecaf5d971..01085314bc 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -11922,7 +11922,8 @@ Value *BoUpSLP::vectorizeTree(
any_of(Scalar->users(),
[&](llvm::User *U) {
TreeEntry *UseEntry = getTreeEntry(U);
- return UseEntry && UseEntry->State == TreeEntry::Vectorize &&
+ return UseEntry &&
+ UseEntry->State == TreeEntry::Vectorize &&
doesInTreeUserNeedToExtract(
Scalar,
cast<Instruction>(UseEntry->Scalars.front()),
``````````
</details>
https://github.com/llvm/llvm-project/pull/76077
More information about the llvm-commits
mailing list