[llvm] Matched some basic ISD::AVGFLOORU patterns (PR #84903)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 12 05:37: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 ba13fa2a5d57581bff1a7e9322234af30f4882f6 cd98974c7e086153fe97ad93902b6bb5cd7d3367 -- 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 f6132e9627..c721db178a 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -2840,7 +2840,7 @@ static SDValue combineFixedwidthToAVG(SDNode *N, SelectionDAG &DAG) {
SDValue And2 = And.getOperand(1);
SDValue Xor1 = Xor.getOperand(0);
SDValue Xor2 = Xor.getOperand(1);
- if(Xor1 != And1 && Xor2 != And2)
+ if (Xor1 != And1 && Xor2 != And2)
return SDValue();
// Is the right shift using an immediate value of 1?
ConstantSDNode *N1C = isConstOrConstSplat(Lshr.getOperand(1));
``````````
</details>
https://github.com/llvm/llvm-project/pull/84903
More information about the llvm-commits
mailing list