stdarch icon indicating copy to clipboard operation
stdarch copied to clipboard

Can non-temporal loads use the LLVM intrinsic instead?

Open ruriww opened this issue 5 months ago • 1 comments

According to @Amanieu:

I checked and only non-temporal stores have special memory orderings on x86. x86 non-temporal loads work just like normal loads.

Using inline assembly produces suboptimal code, see https://godbolt.org/z/os8bG3Efr.

References:

  • https://github.com/rust-lang/stdarch/pull/1929#issuecomment-3368661660
  • https://github.com/rust-lang/stdarch/pull/1594#issuecomment-4641464733

ruriww avatar Jun 07 '26 19:06 ruriww

@rustbot label +A-x86 +A-llvm

bardiharborow avatar Nov 22 '26 02:11 bardiharborow