[llvm] [VectorCombine][AMDGPU] Narrow Phi of Shuffles. (PR #140188)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 19 10:28:21 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/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 dca399169..11ccc7261 100644
--- a/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
+++ b/llvm/lib/Transforms/Vectorize/VectorCombine.cpp
@@ -3497,9 +3497,9 @@ bool VectorCombine::shrinkPhiOfShuffles(Instruction &I) {
   ArrayRef<int> Mask0;
   ArrayRef<int> Mask1;
 
-  if (!match(Phi->getOperand(0u), 
+  if (!match(Phi->getOperand(0u),
              m_OneUse(m_Shuffle(m_Value(Op), m_Poison(), m_Mask(Mask0)))) ||
-      !match(Phi->getOperand(1u), 
+      !match(Phi->getOperand(1u),
              m_OneUse(m_Shuffle(m_Specific(Op), m_Poison(), m_Mask(Mask1)))))
     return false;
 

``````````

</details>


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


More information about the llvm-commits mailing list