about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-07-24 20:55:43 +0200
committerRalf Jung <post@ralfj.de>2024-08-05 10:57:14 +0200
commit1361fdc58cf7aa6e7196a0ef66e387812db930a5 (patch)
treea2a185c13856d20d1aa7921da7e09e535c3c9a17
parentcc0ca37d6df4ecf60cd57033213abcb35a960c5a (diff)
downloadrust-1361fdc58cf7aa6e7196a0ef66e387812db930a5.tar.gz
rust-1361fdc58cf7aa6e7196a0ef66e387812db930a5.zip
nontemporal_store: make sure that the intrinsic is truly just a hint
-rw-r--r--src/builder.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/builder.rs b/src/builder.rs
index a64371a3d89..47b378cc1cd 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -1127,6 +1127,8 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
         self.llbb().add_assignment(self.location, aligned_destination, val);
         // TODO(antoyo): handle align and flags.
         // NOTE: dummy value here since it's never used. FIXME(antoyo): API should not return a value here?
+        // When adding support for NONTEMPORAL, make sure to not just emit MOVNT on x86; see the
+        // LLVM backend for details.
         self.cx.context.new_rvalue_zero(self.type_i32())
     }