[llvm] [SLP]Transform stores + reverse to strided stores with stride -1, if profitable. (PR #90464)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 29 06:05:54 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 217c099eadfb9f2c5b5caf1af7b1ceb6a632cf74 6ff922637e514f1a9efebe2fc07c73b087830dd1 -- 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 2cca7130a0..527a0a347b 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -7861,7 +7861,8 @@ void BoUpSLP::transformNodes() {
break;
}
case Instruction::Store: {
- Type *ScalarTy = cast<StoreInst>(E.getMainOp())->getValueOperand()->getType();
+ Type *ScalarTy =
+ cast<StoreInst>(E.getMainOp())->getValueOperand()->getType();
auto *VecTy = FixedVectorType::get(ScalarTy, E.Scalars.size());
Align CommonAlignment = computeCommonAlignment<StoreInst>(E.Scalars);
// Check if profitable to represent consecutive load + reverse as strided
``````````
</details>
https://github.com/llvm/llvm-project/pull/90464
More information about the llvm-commits
mailing list