[llvm] fix comment typo in ExpandFCOPYSIGN (PR #111489)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 8 00:05:54 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 4647a4666c4f8edabaa89163e899953bcd584aa7 c4bbf10192c404b64a164194561ecc19b7e2b6c7 --extensions cpp -- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 5d324f50cc..2c127b8029 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -1657,7 +1657,8 @@ SDValue SelectionDAGLegalize::ExpandFCOPYSIGN(SDNode *Node) const {
SDValue SignBit = DAG.getNode(ISD::AND, DL, IntVT, SignAsInt.IntValue,
SignMask);
- // If FABS is legal transform FCOPYSIGN(x, y) => SignBit(y) ? -FABS(x) : FABS(x)
+ // If FABS is legal transform FCOPYSIGN(x, y) => SignBit(y) ? -FABS(x) :
+ // FABS(x)
EVT FloatVT = Mag.getValueType();
if (TLI.isOperationLegalOrCustom(ISD::FABS, FloatVT) &&
TLI.isOperationLegalOrCustom(ISD::FNEG, FloatVT)) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/111489
More information about the llvm-commits
mailing list