[llvm] [VectorCombine] Add a cost model for shuffleToIdentity. (PR #93937)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 01:27:16 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 6e975ecf5c93c40d2f088425548eb6476332629c 8dfc683267858f6f2ff3f384245be2b7e9ff576f -- 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 8b94e6653f..0d0337bfd4 100644
--- a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+++ b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -1739,9 +1739,9 @@ static Value *generateNewInstTree(ArrayRef<InstLane> Item, FixedVectorType *Ty,
Ops[Idx] = II->getOperand(Idx);
continue;
}
- Ops[Idx] =
- generateNewInstTree(generateInstLaneVectorFromOperand(Item, Idx, nullptr),
- Ty, IdentityLeafs, SplatLeafs, Builder);
+ Ops[Idx] = generateNewInstTree(
+ generateInstLaneVectorFromOperand(Item, Idx, nullptr), Ty,
+ IdentityLeafs, SplatLeafs, Builder);
}
Builder.SetInsertPoint(I);
Type *DstTy =
``````````
</details>
https://github.com/llvm/llvm-project/pull/93937
More information about the llvm-commits
mailing list