]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #83655 - sebpop:arm64-outline-atomics, r=workingjubilee
authorJubilee <46493976+workingjubilee@users.noreply.github.com>
Mon, 4 Oct 2021 20:58:06 +0000 (13:58 -0700)
committerGitHub <noreply@github.com>
Mon, 4 Oct 2021 20:58:06 +0000 (13:58 -0700)
commit4e9cf04c98dd65a7f4baedc2984fae18d5fecfd1
tree08e3d348f0cd16197d996b5fd27c549fabbac329
parent175b8db73bfd078b4bcd3c28c8d6f51d5895ebf3
parent0f9f241aac21bc77fb9e757da18207abefdc841d
Rollup merge of #83655 - sebpop:arm64-outline-atomics, r=workingjubilee

[aarch64] add target feature outline-atomics

Enable outline-atomics by default as enabled in clang by the following commit
https://reviews.llvm.org/rGc5e7e649d537067dec7111f3de1430d0fc8a4d11

Performance improves by several orders of magnitude when using the LSE instructions
instead of the ARMv8.0 compatible load/store exclusive instructions.

Tested on Graviton2 aarch64-linux with
x.py build && x.py install && x.py test
compiler/rustc_codegen_llvm/src/llvm_util.rs