public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/110127] New: -fimplicit-constexpr leads to extremely slow and memory intensive compilation
@ 2023-06-05 14:29 fiesh at zefix dot tv
  2023-06-05 16:43 ` [Bug c++/110127] " ppalka at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: fiesh at zefix dot tv @ 2023-06-05 14:29 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110127
           Summary: -fimplicit-constexpr leads to extremely slow and
                    memory intensive compilation
           Product: gcc
           Version: 13.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fiesh at zefix dot tv
  Target Milestone: ---

Created attachment 55262
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55262&action=edit
Testcase for slow -fimplicit-constexpr

The attached test case behaves as follows:

% time g++ -std=c++20 -o /dev/null -c u.ii
g++ -std=c++20 -o /dev/null -c u.ii  0.07s user 0.01s system 99% cpu 0.078
total

% time g++ -std=c++20 -o /dev/null -fimplicit-constexpr -c u.ii
g++ -std=c++20 -o /dev/null -fimplicit-constexpr -c u.ii  1637.98s user 41.63s
system 99% cpu 27:59.91 total

The second run also consumes a large amount of memory in the region of 100GB.

I'm a bit stuck on how to reduce this further.

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

end of thread, other threads:[~2023-08-14 18:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-05 14:29 [Bug c++/110127] New: -fimplicit-constexpr leads to extremely slow and memory intensive compilation fiesh at zefix dot tv
2023-06-05 16:43 ` [Bug c++/110127] " ppalka at gcc dot gnu.org
2023-06-06  6:47 ` fiesh at zefix dot tv
2023-08-14 18:21 ` ppalka 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).