[llvm] [VectorCombine] Combine extract/insert from vector (PR #115213)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 7 08:46:57 PST 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 32b55f375feaf6bcc2c870964a0bf087cf3c22bf 290e9c5e23a9730b5c77e8bc7ba918d6f4168fa4 --extensions cpp -- 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 da2a33ea73..3a2b33adc7 100644
--- a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+++ b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -2684,10 +2684,10 @@ bool VectorCombine::shrinkType(llvm::Instruction &I) {
bool VectorCombine::foldInsExtVectorToShuffle(Instruction &I) {
Value *DstVec, *SrcVec;
uint64_t ExtIdx, InsIdx;
- if (!match(&I, m_InsertElt(
- m_Value(DstVec),
- m_OneUse(m_ExtractElt(m_Value(SrcVec), m_ConstantInt(ExtIdx))),
- m_ConstantInt(InsIdx))))
+ if (!match(&I, m_InsertElt(m_Value(DstVec),
+ m_OneUse(m_ExtractElt(m_Value(SrcVec),
+ m_ConstantInt(ExtIdx))),
+ m_ConstantInt(InsIdx))))
return false;
auto *VecTy = dyn_cast<FixedVectorType>(I.getType());
``````````
</details>
https://github.com/llvm/llvm-project/pull/115213
More information about the llvm-commits
mailing list