[PATCH] D151655: [LoongArch] Support finer-grained DBAR hints for LA664+
hev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 6 06:46:06 PDT 2023
hev added a comment.
Grateful for your contribution.
================
Comment at: llvm/test/CodeGen/LoongArch/ir-instruction/load-store-atomic.ll:116
; LA64: # %bb.0:
; LA64-NEXT: amswap_db.w $zero, $a1, $a0
; LA64-NEXT: ret
----------------
Is it better to use `dbar 18` + `store` for LA664 and later micro-architectures?
================
Comment at: llvm/test/CodeGen/LoongArch/ir-instruction/load-store-atomic.ll:269
define void @store_seq_cst_i8(ptr %ptr, i8 signext %v) {
; LA32-LABEL: store_seq_cst_i8:
----------------
We should use `dbar` with `ordering` kind here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151655/new/
https://reviews.llvm.org/D151655
More information about the llvm-commits
mailing list