[llvm] [GlobalISel] Combine (X == 0) & (Y == 0) -> (X | Y) == 0 (PR #69017)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 13 11:08:21 PDT 2023
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 475e154331af19f175ec082b08547b155bba1577 0d4cb7523a2bac64a34474425a6a1ea9077c228e -- llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h b/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
index 6be433952323..97e49b7c6e69 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
@@ -805,8 +805,8 @@ public:
/// (X ^ Y) != X -> Y != 0
bool matchRedundantBinOpInEquality(MachineInstr &MI, BuildFnTy &MatchInfo);
- /// Transform: (X == 0 & Y == 0) -> (X | Y) == 0
- /// (X != 0 | Y != 0) -> (X | Y) != 0
+ /// Transform: (X == 0 & Y == 0) -> (X | Y) == 0
+ /// (X != 0 | Y != 0) -> (X | Y) != 0
bool matchDoubleICmpZeroAndOr(MachineInstr &MI, BuildFnTy &MatchInfo);
/// Match shifts greater or equal to the bitwidth of the operation.
``````````
</details>
https://github.com/llvm/llvm-project/pull/69017
More information about the llvm-commits
mailing list