public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/113807] New: [performance] bitset::set not using memset opportunity
@ 2024-02-07 12:34 rhalbersma at gmail dot com
  2024-02-08 12:55 ` [Bug libstdc++/113807] " redi at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: rhalbersma at gmail dot com @ 2024-02-07 12:34 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113807
           Summary: [performance] bitset::set not using memset opportunity
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rhalbersma at gmail dot com
  Target Milestone: ---

Conditionally on is_constant_evaluated() being false, bitset::reset delegate to
__builtin_memset(_M_w, 0, _Nw * sizeof(_WordT)) and uses a loop otherwise. In
contrast, bitset::set unconditionally has a raw loop. 

Can't bitset::set also not similarly use __builtin_memset(_M_w, 0xFF, _Nw *
sizeof(_WordT)); when is_constant_evaluated() is false?

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

end of thread, other threads:[~2024-05-07  7:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-07 12:34 [Bug libstdc++/113807] New: [performance] bitset::set not using memset opportunity rhalbersma at gmail dot com
2024-02-08 12:55 ` [Bug libstdc++/113807] " redi at gcc dot gnu.org
2024-02-15 11:44 ` cvs-commit at gcc dot gnu.org
2024-02-15 11:53 ` rhalbersma at gmail dot com
2024-02-15 12:40 ` redi at gcc dot gnu.org
2024-02-15 12:45 ` jakub at gcc dot gnu.org
2024-02-15 12:51 ` rguenth at gcc dot gnu.org
2024-02-15 13:10 ` redi at gcc dot gnu.org
2024-02-15 13:36 ` rhalbersma at gmail dot com
2024-02-15 13:43 ` redi at gcc dot gnu.org
2024-05-07  7:44 ` rguenth 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).