diff options
author | Koakuma <koachan@protonmail.com> | 2025-10-08 08:40:25 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-08 10:40:25 +0900 |
commit | cd33c6b68e7010679517416e87a8abd860bdc747 (patch) | |
tree | e2b1732b0888538011ad78b728e9cc2bcb736ce0 /mlir/test/python/lib/PythonTestModulePybind11.cpp | |
parent | 3af95f016e1d690670c13b1d33d14999d863f3fe (diff) | |
download | llvm-cd33c6b68e7010679517416e87a8abd860bdc747.zip llvm-cd33c6b68e7010679517416e87a8abd860bdc747.tar.gz llvm-cd33c6b68e7010679517416e87a8abd860bdc747.tar.bz2 |
[SPARC] Weaken emitted barriers for atomic ops (#154950)
Weaken barriers for atomic ops to the form that's just enough to enforce
memory model constraints.
In particular, we try to avoid emitting expensive #StoreLoad barriers
whenever possible.
The barriers emitted conform to V9's RMO and V8's PSO memory model, and
is compatible with GCC's lowering.
A quick test with `pgbench` on a T4-1 shows some small (up to about 4%),
but consistent speedup.
Diffstat (limited to 'mlir/test/python/lib/PythonTestModulePybind11.cpp')
0 files changed, 0 insertions, 0 deletions