[llvm] [InstCombine] Improve folding of `icmp pred (and X, Mask/~Mask), Y)` (PR #81562)

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 12 21:39:29 PST 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 fb48fd18c240574841378defacadff34238089bb ec40daf22da38fb28165ea1e757493470fec218e -- llvm/include/llvm/IR/PatternMatch.h llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp llvm/unittests/IR/PatternMatch.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/unittests/IR/PatternMatch.cpp b/llvm/unittests/IR/PatternMatch.cpp
index 5a192d9f08..533a30bfba 100644
--- a/llvm/unittests/IR/PatternMatch.cpp
+++ b/llvm/unittests/IR/PatternMatch.cpp
@@ -612,7 +612,6 @@ TEST_F(PatternMatchTest, Power2) {
   EXPECT_FALSE(m_NegatedPower2().match(CZero));
 
   EXPECT_TRUE(m_NegatedPower2OrZero().match(CZero));
-
 }
 
 TEST_F(PatternMatchTest, Not) {

``````````

</details>


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


More information about the llvm-commits mailing list