[llvm] [SLP] Fix condition for avoiding scheduling of instructions (PR #70035)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 24 05:59:23 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 ed979323d87b780e698bdd88c0d75c1a3dc2ea57 024d2c1b07edf6d9f7a0f0f14869ab740eec4ae6 -- 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 3e3de5d9b4bf..68f3d9cea195 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -1083,8 +1083,7 @@ static bool doesNotNeedToBeScheduled(Value *V) {
/// scheduling or their users do not require scheduling since they are phis or
/// in other basic blocks.
static bool doesNotNeedToSchedule(ArrayRef<Value *> VL) {
- return !VL.empty() &&
- (all_of(VL, doesNotNeedToBeScheduled));
+ return !VL.empty() && (all_of(VL, doesNotNeedToBeScheduled));
}
namespace slpvectorizer {
``````````
</details>
https://github.com/llvm/llvm-project/pull/70035
More information about the llvm-commits
mailing list