1
Fork 0

nontemporal_store: make sure that the intrinsic is truly just a hint

This commit is contained in:
Ralf Jung 2024-07-24 20:55:43 +02:00
parent 29e924841f
commit 28e0907111
5 changed files with 49 additions and 15 deletions

View file

@ -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);
}