[llvm] [LoongArch] Improve codegen for atomic ops (PR #67391)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 25 21:15:04 PDT 2023
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 6417ce4336ea2b239c9f7047169cda0b5f92c92b 327d0556d591bcb94b141bd4ea193e7273957df8 -- llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp llvm/unittests/Target/LoongArch/InstSizes.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp b/llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp
index fdc669035..98b8fa047 100644
--- a/llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp
+++ b/llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp
@@ -579,11 +579,11 @@ bool LoongArchExpandAtomicPseudo::expandAtomicCmpXchg(
case AtomicOrdering::Acquire:
case AtomicOrdering::AcquireRelease:
case AtomicOrdering::SequentiallyConsistent:
- // acquire
- hint = 0;
- break;
+ // acquire
+ hint = 0;
+ break;
default:
- hint = 0x700;
+ hint = 0x700;
}
// .tail:
``````````
</details>
https://github.com/llvm/llvm-project/pull/67391
More information about the llvm-commits
mailing list