about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorKor Nielsen <kor@google.com>2023-04-26 23:56:55 -0700
committerKor Nielsen <kor@google.com>2023-04-27 00:22:41 -0700
commit08f7e32a6ec132649aee2b586a9356a95320c5d8 (patch)
treed329673dfef03e167a479f9141e2d55340f5447a /library/std/src/sys/unix/stack_overflow.rs
parentadaac6b166df57ea5a20d56e4cce503b55aca927 (diff)
downloadrust-08f7e32a6ec132649aee2b586a9356a95320c5d8.tar.gz
rust-08f7e32a6ec132649aee2b586a9356a95320c5d8.zip
Support RISC-V unaligned-scalar-mem target feature
This adds `unaligned-scalar-mem` as an allowed RISC-V target feature.
Some RISC-V cores support unaligned access to memory without trapping.
On such cores, the compiler could significantly improve code-size and
performance when using functions like core::ptr::read_unaligned<u32>
by emitting a single load or store instruction with an unaligned
address, rather than a long sequence of byte load/store/bitmanip
instructions.

Enabling the `unaligned-scalar-mem` target feature allows LLVM to do
this optimization.

Fixes #110883
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions