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

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