Skip to content

Commit 1361fdc

Browse files
committed
nontemporal_store: make sure that the intrinsic is truly just a hint
1 parent cc0ca37 commit 1361fdc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/builder.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,8 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
11271127
self.llbb().add_assignment(self.location, aligned_destination, val);
11281128
// TODO(antoyo): handle align and flags.
11291129
// NOTE: dummy value here since it's never used. FIXME(antoyo): API should not return a value here?
1130+
// When adding support for NONTEMPORAL, make sure to not just emit MOVNT on x86; see the
1131+
// LLVM backend for details.
11301132
self.cx.context.new_rvalue_zero(self.type_i32())
11311133
}
11321134

0 commit comments

Comments
 (0)