Skip to content

Commit

Permalink
nontemporal_store: make sure that the intrinsic is truly just a hint
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Aug 5, 2024
1 parent d35f63e commit 80a7d5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/intrinsics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 80a7d5f

Please sign in to comment.