[llvm] [X86] Fold BLEND(PERMUTE(X), PERMUTE(Y)) -> PERMUTE(BLEND(X, Y)) (PR #90219)

via llvm-commits llvm-commits at lists.llvm.org
Sat May 4 06:51:21 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 81003f23f0361aeb05b98489ba659edad40506f8 f4d7f0d15251dd020e8dd5b8d454e3a267fd9162 -- 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 4f9527e4eb..f9ee8116db 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -40080,7 +40080,8 @@ static SDValue combineBlendOfPermutes(MVT VT, SDValue N0, SDValue N1,
     if (Demanded0[I]) {
       int M = ScaledMask0[I];
       if (0 <= M) {
-        assert(isUndefOrEqual(NewBlendMask[M], M) && "BlendMask demands LHS AND RHS");
+        assert(isUndefOrEqual(NewBlendMask[M], M) &&
+               "BlendMask demands LHS AND RHS");
         NewBlendMask[M] = M;
         NewPermuteMask[I] = M;
       }

``````````

</details>


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


More information about the llvm-commits mailing list