Skip to content

Commit 80a7d5f

Browse files
committed
nontemporal_store: make sure that the intrinsic is truly just a hint
1 parent d35f63e commit 80a7d5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/intrinsics/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,8 @@ fn codegen_regular_intrinsic_call<'tcx>(
725725

726726
// Cranelift treats stores as volatile by default
727727
// FIXME correctly handle unaligned_volatile_store
728-
// FIXME actually do nontemporal stores if requested
728+
// FIXME actually do nontemporal stores if requested (but do not just emit MOVNT on x86;
729+
// see the LLVM backend for details)
729730
let dest = CPlace::for_ptr(Pointer::new(ptr), val.layout());
730731
dest.write_cvalue(fx, val);
731732
}

0 commit comments

Comments
 (0)