public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/110054] New: stdx::simd masked store should not use non-temporal store instruction
@ 2023-05-31  9:50 mkretz at gcc dot gnu.org
  2023-05-31  9:51 ` [Bug libstdc++/110054] " mkretz at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: mkretz at gcc dot gnu.org @ 2023-05-31  9:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110054

            Bug ID: 110054
           Summary: stdx::simd masked store should not use non-temporal
                    store instruction
           Product: gcc
           Version: 13.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mkretz at gcc dot gnu.org
  Target Milestone: ---
            Target: x86_64-*-*, i?86-*-*

test case: https://compiler-explorer.com/z/h1qd3bajG

where(k, v).copy_to(ptr, ...)

compiles to MASKMOVDQU which is a non-temporal store. All other stores in simd
are normal (temporal) stores. A non-temporal store only makes sense if the user
explicitly asked for this behavior. Otherwise the performance hit can be
significant, because the relevant cache line(s) need to be evicted before the
write-combining write to memory.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-05-10 14:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-31  9:50 [Bug libstdc++/110054] New: stdx::simd masked store should not use non-temporal store instruction mkretz at gcc dot gnu.org
2023-05-31  9:51 ` [Bug libstdc++/110054] " mkretz at gcc dot gnu.org
2023-05-31 11:54 ` amonakov at gcc dot gnu.org
2023-06-06 13:45 ` cvs-commit at gcc dot gnu.org
2023-06-06 14:14 ` mkretz at gcc dot gnu.org
2024-05-07 16:19 ` cvs-commit at gcc dot gnu.org
2024-05-08 16:14 ` cvs-commit at gcc dot gnu.org
2024-05-10 14:07 ` cvs-commit at gcc dot gnu.org
2024-05-10 14:25 ` mkretz at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).