From 1361fdc58cf7aa6e7196a0ef66e387812db930a5 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 24 Jul 2024 20:55:43 +0200 Subject: [PATCH] nontemporal_store: make sure that the intrinsic is truly just a hint --- src/builder.rs | 2 ++ 1 file changed, 2 insertions(+) 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()) }