[llvm] [X86] getFauxShuffleMask - move INSERT_SUBVECTOR(SRC0, EXTRACT_SUBVECTOR(SRC1)) matching behind common one use bitcast checks (PR #134227)

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 3 03:16:24 PDT 2025


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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Target/X86/X86ISelLowering.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 79cfe7766..1ce756bef 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -6198,7 +6198,8 @@ static bool getFauxShuffleMask(SDValue N, const APInt &DemandedElts,
         SubSrc.getOperand(0).getValueSizeInBits() == NumSizeInBits) {
       uint64_t ExtractIdx = SubSrc.getConstantOperandVal(1);
       SDValue SubSrcSrc = SubSrc.getOperand(0);
-      unsigned NumSubSrcBCElts = SubSrcSrc.getValueType().getVectorNumElements();
+      unsigned NumSubSrcBCElts =
+          SubSrcSrc.getValueType().getVectorNumElements();
       unsigned MaxElts = std::max(NumElts, NumSubSrcBCElts);
       assert((MaxElts % NumElts) == 0 && (MaxElts % NumSubSrcBCElts) == 0 &&
              "Subvector valuetype mismatch");

``````````

</details>


https://github.com/llvm/llvm-project/pull/134227


More information about the llvm-commits mailing list