diff options
author | gonglingqin <gonglingqin@loongson.cn> | 2022-08-23 16:58:22 +0800 |
---|---|---|
committer | gonglingqin <gonglingqin@loongson.cn> | 2022-08-23 17:11:57 +0800 |
commit | e9a4b8e39783b90e804a59a3b2d59b332d5c9fa8 (patch) | |
tree | 7b0031073e3cc13bdefe783a75f51230116a358a /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 14212c968fcd4dd306d2fae34d2570d52d196530 (diff) | |
download | llvm-e9a4b8e39783b90e804a59a3b2d59b332d5c9fa8.zip llvm-e9a4b8e39783b90e804a59a3b2d59b332d5c9fa8.tar.gz llvm-e9a4b8e39783b90e804a59a3b2d59b332d5c9fa8.tar.bz2 |
[LoongArch] Optimize the atomic store with amswap_db.[w/d]
When AtomicOrdering is release or stronger, use
amswap_db.[w/d] $zero, $a1, $a0
instead of
dbar 0
st.[w/d] $a0, $a1, 0
Thanks to @xry111 for the suggestion: https://reviews.llvm.org/D128901#3626635
Differential Revision: https://reviews.llvm.org/D129838
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions