diff options
| author | Ralf Jung <post@ralfj.de> | 2024-07-25 18:54:00 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-08-05 10:57:14 +0200 |
| commit | 697787a92d8858b17bfe3e55c3e82877149f8f83 (patch) | |
| tree | 1e3f6de4d83efd09b258c0501d24b4e9a6555781 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 28e0907111075dead53a931004b0ba6f1fe0d793 (diff) | |
| download | rust-697787a92d8858b17bfe3e55c3e82877149f8f83.tar.gz rust-697787a92d8858b17bfe3e55c3e82877149f8f83.zip | |
RISC-V also has sane nontemporal stores
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/builder.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs index 1686bc59c76..20bf580a716 100644 --- a/compiler/rustc_codegen_llvm/src/builder.rs +++ b/compiler/rustc_codegen_llvm/src/builder.rs @@ -737,7 +737,8 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { // a hint, and use regular stores everywhere else. // (In the future, we could alternatively ensure that an sfence gets emitted after a sequence of movnt // before any kind of synchronizing operation. But it's not clear how to do that with LLVM.) - const WELL_BEHAVED_NONTEMPORAL_ARCHS: &[&str] = &["aarch64", "arm"]; + const WELL_BEHAVED_NONTEMPORAL_ARCHS: &[&str] = + &["aarch64", "arm", "riscv32", "riscv64"]; let use_nontemporal = WELL_BEHAVED_NONTEMPORAL_ARCHS.contains(&&*self.cx.tcx.sess.target.arch); |
