[llvm] [SelectionDAG] Handle `fneg`/`fabs`/`fcopysign` in `SimplifyDemandedBits` (PR #139239)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 11 06:10:02 PDT 2025


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 HEAD~1 HEAD --extensions cpp -- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index bc83eaa51..36923aa24 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -2991,7 +2991,7 @@ bool TargetLowering::SimplifyDemandedBits(
   case ISD::FCOPYSIGN: {
     SDValue Op0 = Op.getOperand(0);
     SDValue Op1 = Op.getOperand(1);
-    
+
     unsigned BitWidth0 = Op0.getScalarValueSizeInBits();
     unsigned BitWidth1 = Op1.getScalarValueSizeInBits();
     APInt SignMask0 = APInt::getSignMask(BitWidth0);

``````````

</details>


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


More information about the llvm-commits mailing list