aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorgonglingqin <gonglingqin@loongson.cn>2022-08-23 16:58:22 +0800
committergonglingqin <gonglingqin@loongson.cn>2022-08-23 17:11:57 +0800
commite9a4b8e39783b90e804a59a3b2d59b332d5c9fa8 (patch)
tree7b0031073e3cc13bdefe783a75f51230116a358a /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent14212c968fcd4dd306d2fae34d2570d52d196530 (diff)
downloadllvm-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