public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27140]  New: Compiling LLVM now takes nearly 5x as long with 4.1 as it did with 4.0
@ 2006-04-13  7:44 rspencer at x10sys dot com
  2006-04-13  7:48 ` [Bug c++/27140] " rspencer at x10sys dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 18+ messages in thread
From: rspencer at x10sys dot com @ 2006-04-13  7:44 UTC (permalink / raw)
  To: gcc-bugs

I'm compiling the LLVM compiler infrastructure and have noticed that GCC 4.1
takes an excessively long time to compile versus GCC 4.0. In particular, one
file (albeit 2 million source lines) takes over 10 minutes (618.97 seconds) of
CPU time to compile. On the exact same source, GCC 4.0.2 takes just over 2
minutes (130.68 seconds). GCC 3.4 was even faster (from memory).

Here are the heavy-hitters (from -ftime-report) from highest to lowest:
                        usr           sys         wall          mem  
tree SSA incremental  : 172.76 (30%)  0.61 ( 1%)  175.39 (22%)  9356kB ( 1%)
ggc
tree PHI insertion    :  55.86 (10%)  0.30 ( 1%)   57.54 ( 7%)  6346kB ( 1%)
ggc
dominance frontiers   :  40.15 ( 7%)  0.10 ( 0%)   40.02 ( 5%)     0kB ( 0%)
ggc
dominator optimization:  24.50 ( 4%)  0.57 ( 1%)   34.06 ( 4%) 74359kB ( 8%)
ggc
tree PTA              :  19.51 ( 3%)  1.44 ( 3%)   22.90 ( 3%) 15806kB ( 2%)
ggc
PRE                   :  19.09 ( 3%)  6.52 (15%)   27.10 ( 3%)  1960kB ( 0%)
ggc
TOTAL                 : 576.55       42.42        794.94       957564 kB

Attached is a tarball that contains pre-compiled source code, and the timing
statistics for both 4.0.2 and 4.1.0 as generated by GCC. 

This problem may have already been reported by or related to the following
bugs:
bug 18419, bug 17895, bug 17596.

Another thing to note. The object file for 4.1.0 is 21% larger than for 4.0.2
(1454880 vs 1759292).

Platform: (Linux FC3 with updates):
Linux 2.6.12-1.1381_FC3smp #1 SMP Fri Oct 21 04:03:26 EDT 2005 i686 i686 i386
GNU/Linux

gcc -v: (slow)
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1.0/configure --prefix=/proj/install
--enable-languages=c,c++,java --with-gnuas --with-gnuld
Thread model: posix
gcc version 4.1.0

gcc -v: (fast)
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../svn/configure --prefix=/proj/install2
--enable-languages=c,c++ --with-gnuld --with-gnuas
Thread model: posix
gcc version 4.0.2


-- 
           Summary: Compiling LLVM now takes nearly 5x as long with 4.1 as
                    it did with 4.0
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rspencer at x10sys dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 18+ messages in thread
[parent not found: <bug-27140-4@http.gcc.gnu.org/bugzilla/>]

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

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-13  7:44 [Bug c++/27140] New: Compiling LLVM now takes nearly 5x as long with 4.1 as it did with 4.0 rspencer at x10sys dot com
2006-04-13  7:48 ` [Bug c++/27140] " rspencer at x10sys dot com
2006-04-13 16:30 ` [Bug tree-optimization/27140] " pinskia at gcc dot gnu dot org
2006-04-13 16:31 ` sabre at nondot dot org
2006-04-13 17:26 ` rspencer at x10sys dot com
2006-04-13 20:14 ` rspencer at x10sys dot com
2006-04-13 20:30 ` rspencer at x10sys dot com
2006-04-13 22:40   ` Daniel Berlin
2006-04-13 22:40 ` dberlin at dberlin dot org
2006-04-17 10:16 ` rguenth at gcc dot gnu dot org
2006-04-21 23:12 ` rspencer at x10sys dot com
2006-10-17 22:42 ` rspencer at x10sys dot com
2006-10-17 22:44   ` Andrew Pinski
2006-10-17 22:44 ` pinskia at physics dot uc dot edu
2008-01-26 23:00 ` rguenth at gcc dot gnu dot org
2008-09-03  2:13 ` pinskia at gcc dot gnu dot org
2009-08-14 16:27 ` jessieluv22 at gmail dot com
     [not found] <bug-27140-4@http.gcc.gnu.org/bugzilla/>
2012-01-10 15:57 ` 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).