diff options
| author | Kor Nielsen <kor@google.com> | 2023-04-26 23:56:55 -0700 |
|---|---|---|
| committer | Kor Nielsen <kor@google.com> | 2023-04-27 00:22:41 -0700 |
| commit | 08f7e32a6ec132649aee2b586a9356a95320c5d8 (patch) | |
| tree | d329673dfef03e167a479f9141e2d55340f5447a /library/std/src/sys/unix/stack_overflow.rs | |
| parent | adaac6b166df57ea5a20d56e4cce503b55aca927 (diff) | |
| download | rust-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
