[llvm] [X86] vectorizeExtractedCast - don't assume vector source type is simple (PR #178414)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 28 05:07:52 PST 2026
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 origin/main HEAD --extensions cpp -- llvm/lib/Target/X86/X86ISelLowering.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</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 5df7d4689..ca73b3362 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -20187,7 +20187,8 @@ static SDValue vectorizeExtractedCast(SDValue Cast, const SDLoc &DL,
SDValue VecOp = Extract.getOperand(0);
EVT FromVT = VecOp.getValueType();
unsigned NumEltsInXMM = 128 / FromVT.getScalarSizeInBits();
- MVT Vec128VT = MVT::getVectorVT(FromVT.getScalarType().getSimpleVT(), NumEltsInXMM);
+ MVT Vec128VT =
+ MVT::getVectorVT(FromVT.getScalarType().getSimpleVT(), NumEltsInXMM);
MVT ToVT = MVT::getVectorVT(DestVT, NumEltsInXMM);
if (!useVectorCast(Cast.getOpcode(), Vec128VT, ToVT, Subtarget))
return SDValue();
``````````
</details>
https://github.com/llvm/llvm-project/pull/178414
More information about the llvm-commits
mailing list