[llvm] [SLP]Improve instruction reordering mode detection. (PR #97485)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 2 14:43:40 PDT 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 139508eb87bda18c8adbfb87bba6acac8ce29a36 42b649e45e0f653066114ef9d240a9a5da958f84 -- 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 1d92cc10bb..699add6a66 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -2267,8 +2267,7 @@ public:
ReorderingModes[OpIdx] = ReorderingMode::Splat;
else
ReorderingModes[OpIdx] = ReorderingMode::Opcode;
- }
- else if (isa<Constant>(OpLane0))
+ } else if (isa<Constant>(OpLane0))
ReorderingModes[OpIdx] = ReorderingMode::Constant;
else if (isa<Argument>(OpLane0))
// Our best hope is a Splat. It may save some cost in some cases.
``````````
</details>
https://github.com/llvm/llvm-project/pull/97485
More information about the llvm-commits
mailing list