[llvm] [DAG] Add SDPatternMatch::m_SetCC and update some combines to use it (PR #98646)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 12 08:09:11 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 05f987743170cbd9fc97699c7a9b352055de7300 8e863f7fd7ecef6d7b8f25525cb7f085e2d46d9d --extensions h,cpp -- llvm/include/llvm/CodeGen/SDPatternMatch.h llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 9185c0176d..5b696476ae 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -2301,8 +2301,8 @@ static bool isTruncateOf(SelectionDAG &DAG, SDValue N, SDValue &Op,
}
if (N.getValueType().getScalarType() != MVT::i1 ||
- !sd_match(N,
- m_c_SetCC(m_Value(Op), m_Zero(), m_SpecificCondCode(ISD::SETNE))))
+ !sd_match(
+ N, m_c_SetCC(m_Value(Op), m_Zero(), m_SpecificCondCode(ISD::SETNE))))
return false;
Known = DAG.computeKnownBits(Op);
``````````
</details>
https://github.com/llvm/llvm-project/pull/98646
More information about the llvm-commits
mailing list