[llvm] [VectorCombine] foldShuffleOfShuffles - fold "shuffle (shuffle x, undef), (shuffle y, undef)" -> "shuffle x, y" (PR #88743)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 15 08:03:53 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 105dcc882cf0152baeaa02ac0e50e2527b6940db aed7024246cbe7ff031a763d9d3d6aa34f4b3472 -- llvm/lib/Transforms/Vectorize/VectorCombine.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
index bfc23f0b1f..5c76fd58c8 100644
--- a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+++ b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -1615,7 +1615,7 @@ bool VectorCombine::foldShuffleOfShuffles(Instruction &I) {
return true;
}
- /// Given a commutative reduction, the order of the input lanes does not alter
+/// Given a commutative reduction, the order of the input lanes does not alter
/// the results. We can use this to remove certain shuffles feeding the
/// reduction, removing the need to shuffle at all.
bool VectorCombine::foldShuffleFromReductions(Instruction &I) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/88743
More information about the llvm-commits
mailing list