public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/54146] New: Very slow compile at -O1 (expand vars)
@ 2012-07-31 18:33 glisse at gcc dot gnu.org
  2012-07-31 18:38 ` [Bug middle-end/54146] " pinskia at gcc dot gnu.org
                   ` (64 more replies)
  0 siblings, 65 replies; 66+ messages in thread
From: glisse at gcc dot gnu.org @ 2012-07-31 18:33 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54146

             Bug #: 54146
           Summary: Very slow compile at -O1 (expand vars)
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: glisse@gcc.gnu.org


Created attachment 27912
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27912
testcase

Hello,

trying to compile the attached program on x86_64, g++ slow.cc -frounding-math
-c -w -O2 fails after about an hour. The memory consumption (as shown by top)
never went above 1.5G. clang compiles the whole thing in 1 minute (well, it
won't compile the preprocessed source attached here, but the original program).

If you remove most of the check<...> lines at then end (keep only the first
one), the program takes about 10s to compile at -O0, and 30s at -O1 (or -O2,
-O3), with 2/3 of the time spent in "expand vars" according to -ftime-report.
The most relevant report I found in bugzilla is PR 38474, but it seems to say
that expand vars should be fast now...


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

end of thread, other threads:[~2012-10-15 21:32 UTC | newest]

Thread overview: 66+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-31 18:33 [Bug middle-end/54146] New: Very slow compile at -O1 (expand vars) glisse at gcc dot gnu.org
2012-07-31 18:38 ` [Bug middle-end/54146] " pinskia at gcc dot gnu.org
2012-07-31 18:48 ` glisse at gcc dot gnu.org
2012-07-31 20:17 ` steven at gcc dot gnu.org
2012-07-31 20:34 ` steven at gcc dot gnu.org
2012-07-31 22:17 ` steven at gcc dot gnu.org
2012-07-31 23:00 ` steven at gcc dot gnu.org
2012-08-01 12:22 ` steven at gcc dot gnu.org
2012-08-01 14:08 ` steven at gcc dot gnu.org
2012-08-01 14:14 ` steven at gcc dot gnu.org
2012-08-01 14:25 ` steven at gcc dot gnu.org
2012-08-01 14:32 ` rguenth at gcc dot gnu.org
2012-08-01 16:00 ` glisse at gcc dot gnu.org
2012-08-02 10:01 ` [Bug tree-optimization/54146] Very slow compile with attribute((flatten)) steven at gcc dot gnu.org
2012-08-02 10:37 ` rguenther at suse dot de
2012-08-03  9:00 ` steven at gcc dot gnu.org
2012-08-03 14:44 ` matz at gcc dot gnu.org
2012-08-05 11:39 ` steven at gcc dot gnu.org
2012-08-05 18:49 ` steven at gcc dot gnu.org
2012-08-05 21:14 ` steven at gcc dot gnu.org
2012-08-06  8:46 ` rguenth at gcc dot gnu.org
2012-08-06  9:10 ` stevenb.gcc at gmail dot com
2012-08-06 15:36 ` steven at gcc dot gnu.org
2012-08-06 19:37 ` steven at gcc dot gnu.org
2012-08-06 20:22 ` steven at gcc dot gnu.org
2012-08-06 20:56 ` steven at gcc dot gnu.org
2012-08-06 22:43 ` steven at gcc dot gnu.org
2012-08-06 22:59 ` steven at gcc dot gnu.org
2012-08-07 11:59 ` rguenth at gcc dot gnu.org
2012-08-07 19:58 ` steven at gcc dot gnu.org
2012-08-07 22:28 ` steven at gcc dot gnu.org
2012-08-07 22:37 ` steven at gcc dot gnu.org
2012-08-08  6:28 ` steven at gcc dot gnu.org
2012-08-08  6:29 ` steven at gcc dot gnu.org
2012-08-08  6:30 ` [Bug middle-end/54146] " steven at gcc dot gnu.org
2012-08-08  6:30 ` steven at gcc dot gnu.org
2012-08-08  8:10 ` rguenth at gcc dot gnu.org
2012-08-08 10:11 ` steven at gcc dot gnu.org
2012-08-08 11:49 ` rguenth at gcc dot gnu.org
2012-08-08 17:40 ` steven at gcc dot gnu.org
2012-08-10  3:46 ` hubicka at ucw dot cz
2012-08-10  3:51 ` hubicka at ucw dot cz
2012-08-10  3:54 ` hubicka at ucw dot cz
2012-08-10  4:35 ` hubicka at gcc dot gnu.org
2012-08-10  5:19 ` hubicka at gcc dot gnu.org
2012-08-10  6:33 ` steven at gcc dot gnu.org
2012-08-10  7:53 ` hubicka at gcc dot gnu.org
2012-08-14 12:39 ` rguenth at gcc dot gnu.org
2012-08-14 13:21 ` glisse at gcc dot gnu.org
2012-08-15 14:34 ` steven at gcc dot gnu.org
2012-08-15 15:07 ` steven at gcc dot gnu.org
2012-08-16 10:53 ` steven at gcc dot gnu.org
2012-08-16 12:11 ` rguenth at gcc dot gnu.org
2012-08-16 13:56 ` stevenb.gcc at gmail dot com
2012-08-16 14:07 ` rguenther at suse dot de
2012-08-16 14:28 ` rguenth at gcc dot gnu.org
2012-08-16 23:04 ` steven at gcc dot gnu.org
2012-08-17  9:43 ` steven at gcc dot gnu.org
2012-08-20 19:31 ` steven at gcc dot gnu.org
2012-08-21  7:56 ` rguenther at suse dot de
2012-08-21 13:35 ` rguenth at gcc dot gnu.org
2012-08-21 13:57 ` stevenb.gcc at gmail dot com
2012-09-02 22:55 ` steven at gcc dot gnu.org
2012-09-04 10:51 ` steven at gcc dot gnu.org
2012-09-10 16:05 ` hubicka at ucw dot cz
2012-10-15 21:32 ` steven 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).