public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/23490] New: Long compile time for array initializer with inlined constructor
@ 2005-08-19 22:48 falk at debian dot org
  2005-08-19 23:03 ` [Bug rtl-optimization/23490] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 14+ messages in thread
From: falk at debian dot org @ 2005-08-19 22:48 UTC (permalink / raw)
  To: gcc-bugs

GNU C++ version 4.1.0 20050810

This little program:

struct qd_real {
    double x[4];
    inline qd_real(double x0, double x1, double x2, double x3) {
        x[0] = x0;
        x[1] = x1;
        x[2] = x2;
        x[3] = x3;
    }

};

#define TWO(x) x, x

const qd_real sin_table[] = {
    TWO(
    TWO(
    TWO(        
    TWO(
    TWO(        
    TWO(        
    TWO(
    TWO(
    TWO(
    TWO(
        qd_real(1, 2, 3, 4)
        ))))))))))
};

takes about 25 seconds to compile on my machine, although it's only 1000 lines
or so. Compile time seems to scale roughly linear, but it's pretty damn slow.
2.95 takes 6 seconds, but that's without checking, so it's not entirely fair.

Profile:

samples  %        symbol name
3483     14.2530  rtx_equal_for_memref_p
2016      8.2498  find_base_term
1765      7.2227  canon_rtx
1493      6.1096  memrefs_conflict_p
1189      4.8656  for_each_rtx_1
1052      4.3049  nonoverlapping_memrefs_p
921       3.7689  rtx_equal_p
690       2.8236  exp_equiv_p
640       2.6190  addr_side_effect_eval
579       2.3694  canon_true_dependence
504       2.0624  check_dependence
479       1.9601  is_gimple_stmt
460       1.8824  ggc_alloc_stat
343       1.4036  for_each_rtx
327       1.3381  walk_tree
300       1.2276  base_alias_check
270       1.1049  poison_pages
258       1.0558  schedule_block
253       1.0353  cse_insn

-- 
           Summary: Long compile time for array initializer with inlined
                    constructor
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: compile-time-hog
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: falk at debian dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: alphaev68-unknown-linux-gnu
  GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu


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


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

end of thread, other threads:[~2005-11-05  0:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-19 22:48 [Bug tree-optimization/23490] New: Long compile time for array initializer with inlined constructor falk at debian dot org
2005-08-19 23:03 ` [Bug rtl-optimization/23490] " pinskia at gcc dot gnu dot org
2005-08-19 23:27 ` pinskia at gcc dot gnu dot org
2005-08-20  2:29 ` [Bug rtl-optimization/23490] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-09-19  0:02 ` pinskia at gcc dot gnu dot org
2005-09-19  0:05 ` pinskia at gcc dot gnu dot org
2005-09-19  0:07 ` steven at gcc dot gnu dot org
2005-09-19 11:07 ` steven at gcc dot gnu dot org
2005-09-27 16:15 ` mmitchel at gcc dot gnu dot org
     [not found] <bug-23490-2744@http.gcc.gnu.org/bugzilla/>
2005-10-31  5:17 ` mmitchel at gcc dot gnu dot org
2005-11-03 20:06 ` hubicka at gcc dot gnu dot org
2005-11-03 20:20 ` falk at debian dot org
2005-11-03 21:23 ` hubicka at ucw dot cz
2005-11-05  0:55 ` hubicka at gcc dot gnu dot 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).