[llvm] DAG: Implement softening for fp atomic store (PR #90840)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 2 02:24:13 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 c32a4f83b59c4293f0b91503ed217371ae1ab543 fff7217a4e5c8de5ac79f53181b9ad30e851e7d5 -- llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
index a6efe88eaa..ed838ae877 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
@@ -1183,8 +1183,7 @@ SDValue DAGTypeLegalizer::SoftenFloatOp_ATOMIC_STORE(SDNode *N, unsigned OpNo) {
EVT VT = Val.getValueType();
SDLoc dl(N);
- assert(ST->getMemoryVT() == VT &&
- "truncating atomic store not handled");
+ assert(ST->getMemoryVT() == VT && "truncating atomic store not handled");
SDValue NewVal = GetSoftenedFloat(Val);
return DAG.getAtomic(ISD::ATOMIC_STORE, dl, VT, ST->getChain(), NewVal,
``````````
</details>
https://github.com/llvm/llvm-project/pull/90840
More information about the llvm-commits
mailing list