[llvm] [InstCombine] Fixing wrong merge of vector operands with undef elements (PR #102742)

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 10 07:54:33 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 86691f8d7e86176db7409ccafb7a79964221720a 34ab405990939ff49797e046f5ba4d7e16ff5451 --extensions cpp -- llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
index c9b0203ab8..2eab0ca1d1 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -4257,7 +4257,7 @@ static Instruction *visitMaskedMerge(BinaryOperator &I,
 
   Value *NotM;
   if (match(M, m_Not(m_Value(NotM)))) {
-    
+
     if (ConstantVector *C = dyn_cast<ConstantVector>(X))
       if (C->containsUndefElement())
         return nullptr;

``````````

</details>


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


More information about the llvm-commits mailing list