diff options
| author | Ralf Jung <post@ralfj.de> | 2024-07-24 20:55:43 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-08-05 10:57:14 +0200 |
| commit | 28e0907111075dead53a931004b0ba6f1fe0d793 (patch) | |
| tree | f950baa88a509cf489b93487a0b44489c55269a3 /compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs | |
| parent | 29e924841f06bb181d87494eba2783761bc1ddec (diff) | |
| download | rust-28e0907111075dead53a931004b0ba6f1fe0d793.tar.gz rust-28e0907111075dead53a931004b0ba6f1fe0d793.zip | |
nontemporal_store: make sure that the intrinsic is truly just a hint
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs b/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs index b21c559e668..29deac60730 100644 --- a/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs +++ b/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs @@ -725,7 +725,8 @@ fn codegen_regular_intrinsic_call<'tcx>( // Cranelift treats stores as volatile by default // FIXME correctly handle unaligned_volatile_store - // FIXME actually do nontemporal stores if requested + // FIXME actually do nontemporal stores if requested (but do not just emit MOVNT on x86; + // see the LLVM backend for details) let dest = CPlace::for_ptr(Pointer::new(ptr), val.layout()); dest.write_cvalue(fx, val); } |
