[llvm] [X86][AVX] Match v4f64 blend from shuffle of scalar values. (PR #135753)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 26 11:58: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 ded0c14db..d3cec18d1 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -8779,11 +8779,11 @@ static SDValue lowerBuildVectorAsBlend(BuildVectorSDNode *BVOp, SDLoc const &DL,
// Candidate BUILD_VECTOR must have 2 unique operands.
if (UniqueOps.size() != 2u)
return SDValue();
-
+
SDValue Op0 = *(UniqueOps.begin());
SDValue Op1 = *(++UniqueOps.begin());
- if (isShuffleFoldableLoad(Op0) || isShuffleFoldableLoad(Op1) ||
+ if (isShuffleFoldableLoad(Op0) || isShuffleFoldableLoad(Op1) ||
Subtarget.hasAVX2()) {
// Create shuffle mask.
auto const NumElems = VT.getVectorNumElements();
``````````
</details>
https://github.com/llvm/llvm-project/pull/135753
More information about the llvm-commits
mailing list