mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-21 03:14:11 +00:00
nontemporal_store: make sure that the intrinsic is truly just a hint
This commit is contained in:
parent
d35f63e303
commit
80a7d5f61d
@ -725,7 +725,8 @@ fn codegen_regular_intrinsic_call<'tcx>(
|
|||||||
|
|
||||||
// Cranelift treats stores as volatile by default
|
// Cranelift treats stores as volatile by default
|
||||||
// FIXME correctly handle unaligned_volatile_store
|
// 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());
|
let dest = CPlace::for_ptr(Pointer::new(ptr), val.layout());
|
||||||
dest.write_cvalue(fx, val);
|
dest.write_cvalue(fx, val);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user