public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12392] New: very long optimized compile
@ 2003-09-24 18:10 john dot skinner at med dot ge dot com
  2003-09-24 18:13 ` [Bug c++/12392] " john dot skinner at med dot ge dot com
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: john dot skinner at med dot ge dot com @ 2003-09-24 18:10 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: very long optimized compile
           Product: gcc
           Version: 3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: john dot skinner at med dot ge dot com
                CC: gcc-bugs at gcc dot gnu dot org

I experience a very (possibly infinitely) long compile.  
The code is program generated, and uses alot of ?: operators.
Even if you can tell me a more simpler way to generate the code that
avoids the problem let me know.
The program also heavily depends on stl string which in turn uses
templates.


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

* [Bug c++/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
@ 2003-09-24 18:13 ` john dot skinner at med dot ge dot com
  2003-09-24 18:14 ` john dot skinner at med dot ge dot com
                   ` (15 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: john dot skinner at med dot ge dot com @ 2003-09-24 18:13 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From john dot skinner at med dot ge dot com  2003-09-24 15:02 -------
Created an attachment (id=4811)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4811&action=view)
This is the file I am trying to compile


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

* [Bug c++/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
  2003-09-24 18:13 ` [Bug c++/12392] " john dot skinner at med dot ge dot com
@ 2003-09-24 18:14 ` john dot skinner at med dot ge dot com
  2003-09-25  8:15 ` ehrhardt at mathematik dot uni-ulm dot de
                   ` (14 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: john dot skinner at med dot ge dot com @ 2003-09-24 18:14 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From john dot skinner at med dot ge dot com  2003-09-24 15:06 -------
Created an attachment (id=4812)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4812&action=view)
The entire set of files to satisfy dependencies in compile

Go to Cxx/ApStyle/Output
do gmake there.  Should demonstrate the problem.


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

* [Bug c++/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
  2003-09-24 18:13 ` [Bug c++/12392] " john dot skinner at med dot ge dot com
  2003-09-24 18:14 ` john dot skinner at med dot ge dot com
@ 2003-09-25  8:15 ` ehrhardt at mathematik dot uni-ulm dot de
  2003-09-29  0:29 ` pinskia at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: ehrhardt at mathematik dot uni-ulm dot de @ 2003-09-25  8:15 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


ehrhardt at mathematik dot uni-ulm dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


------- Additional Comments From ehrhardt at mathematik dot uni-ulm dot de  2003-09-25 06:26 -------
Please send preprocessed source code. You can get preprocessed
source code by adding -save-temps to the gcc comand line. This
will produce a self-contained .ii file.

   regards  Christian


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

* [Bug c++/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
                   ` (2 preceding siblings ...)
  2003-09-25  8:15 ` ehrhardt at mathematik dot uni-ulm dot de
@ 2003-09-29  0:29 ` pinskia at gcc dot gnu dot org
  2003-09-29  0:44 ` pinskia at gcc dot gnu dot org
                   ` (12 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-29  0:29 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-28 22:04 -------
Marking as invalid to mark as ....


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

* [Bug c++/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
                   ` (3 preceding siblings ...)
  2003-09-29  0:29 ` pinskia at gcc dot gnu dot org
@ 2003-09-29  0:44 ` pinskia at gcc dot gnu dot org
  2003-10-28 15:27 ` [Bug optimization/12392] " pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-09-29  0:44 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-09-28 22:04 -------
unconfirmed.


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

* [Bug optimization/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
                   ` (4 preceding siblings ...)
  2003-09-29  0:44 ` pinskia at gcc dot gnu dot org
@ 2003-10-28 15:27 ` pinskia at gcc dot gnu dot org
  2003-11-26 19:10 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-28 15:27 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |optimization


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

* [Bug optimization/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
                   ` (5 preceding siblings ...)
  2003-10-28 15:27 ` [Bug optimization/12392] " pinskia at gcc dot gnu dot org
@ 2003-11-26 19:10 ` pinskia at gcc dot gnu dot org
  2004-05-22  5:07 ` [Bug rtl-optimization/12392] " pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-26 19:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-11-26 19:10 -------
Confirmed, more than 6.5 minutes on a 800MHz G4 TI Book  for -O2 (will attach the 3.4 
preprocessed source soon).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |compile-time-hog
   Last reconfirmed|0000-00-00 00:00:00         |2003-11-26 19:10:47
               date|                            |


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


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

* [Bug rtl-optimization/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
                   ` (6 preceding siblings ...)
  2003-11-26 19:10 ` pinskia at gcc dot gnu dot org
@ 2004-05-22  5:07 ` pinskia at gcc dot gnu dot org
  2004-05-22  9:48 ` giovannibajo at libero dot it
                   ` (8 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-22  5:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-21 03:38 -------
I attached the 3.5.0 preprocessed source file.

-- 


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


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

* [Bug rtl-optimization/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
                   ` (7 preceding siblings ...)
  2004-05-22  5:07 ` [Bug rtl-optimization/12392] " pinskia at gcc dot gnu dot org
@ 2004-05-22  9:48 ` giovannibajo at libero dot it
  2004-06-08  0:57 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: giovannibajo at libero dot it @ 2004-05-22  9:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2004-05-21 12:23 -------
Confirmed not to be a regression. I'll attacch the compiler-independent 
testcase now.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |2.95 3.2 3.3.3 3.4.0 3.5.0


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


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

* [Bug rtl-optimization/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
                   ` (8 preceding siblings ...)
  2004-05-22  9:48 ` giovannibajo at libero dot it
@ 2004-06-08  0:57 ` pinskia at gcc dot gnu dot org
  2004-09-08  5:58 ` [Bug middle-end/12392] " pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-08  0:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-08 00:57 -------
For 3.5.0, lowering execptions is the large portion of the time.

-- 


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


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

* [Bug middle-end/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
                   ` (9 preceding siblings ...)
  2004-06-08  0:57 ` pinskia at gcc dot gnu dot org
@ 2004-09-08  5:58 ` pinskia at gcc dot gnu dot org
  2004-11-21  4:53 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-08  5:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-08 05:58 -------
On the mainline (without checking disabled so we cannot compare it to 3.4.0 or another version and 
maybe this is also not the right timings for this test without checking):
 global alloc          :  19.38 (37%) usr   0.29 (11%) sys  39.92 (36%) wall
 expand                :   6.90 (13%) usr   0.06 ( 2%) sys  14.47 (13%) wall


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2003-11-26 19:10:47         |2004-09-08 05:58:25
               date|                            |


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


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

* [Bug middle-end/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
                   ` (10 preceding siblings ...)
  2004-09-08  5:58 ` [Bug middle-end/12392] " pinskia at gcc dot gnu dot org
@ 2004-11-21  4:53 ` pinskia at gcc dot gnu dot org
  2005-07-25  2:06 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-21  4:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-21 04:53 -------
With the mainline on ppc-darwin we have a huge problem in the scheduler:
 scheduling            : 131.99 (44%) usr  52.35 (75%) sys 231.63 (46%) wall

PRE (GCSE) is also a problem too:
 PRE                   :  38.78 (13%) usr   1.82 ( 3%) sys  73.43 (15%) wall

For the scheduler at least we have linked lists which we allocate a lot of.

-- 


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


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

* [Bug middle-end/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
                   ` (11 preceding siblings ...)
  2004-11-21  4:53 ` pinskia at gcc dot gnu dot org
@ 2005-07-25  2:06 ` pinskia at gcc dot gnu dot org
  2005-07-25  3:00 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-25  2:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-25 02:01 -------
At -O0:
function.c:3782 (allocate_struct_function)           825840: 0.6%          0: 0.0%    1059120: 7.2%     
544544: 3.8%       2618
cfg.c:211 (connect_dest)                            1989960: 1.5%     146112: 0.3%          0: 0.0%      74328: 
0.5%      77610
emit-rtl.c:3303 (make_jump_insn_raw)                2024820: 1.5%          0: 0.0%          0: 0.0%     269976: 
1.9%      33747
cfgrtl.c:3079 (init_rtl_bb_info)                    2040984: 1.5%          0: 0.0%          0: 0.0%     226776: 1.6%      
56694
genrtl.c:379 (gen_rtx_fmt_e0)                       2001048: 1.5%          0: 0.0%      43056: 0.3%          0: 0.0%     
170342
emit-rtl.c:3324 (make_call_insn_raw)                2076060: 1.6%          0: 0.0%          0: 0.0%     276808: 
1.9%      34601
cgraph.c:289 (cgraph_create_edge)                   2249408: 1.7%          0: 0.0%          0: 0.0%     160672: 
1.1%      40168
tree-iterator.c:165 (tsi_link_after)                2503236: 1.9%          0: 0.0%      49488: 0.3%          0: 0.0%     
212727
ggc-common.c:193 (ggc_calloc)                       1755288: 1.3%     641100: 1.4%     823352: 5.6%     
148744: 1.0%       4507
varray.c:141 (varray_init)                          3024252: 2.3%      17624: 0.0%        400: 0.0%     521460: 
3.6%       2724
gimplify.c:337 (create_tmp_var_raw)                 3187680: 2.4%          0: 0.0%      65952: 0.5%          0: 
0.0%      33892
genrtl.c:349 (gen_rtx_fmt_i00)                      3437856: 2.6%          0: 0.0%      32336: 0.2%          0: 0.0%     
216887
varray.c:174 (varray_grow)                          4153452: 3.1%    4096304: 9.0%     270608: 1.8%    
1766316:12.2%        244
gimplify.c:293 (create_artificial_label)            4686600: 3.5%          0: 0.0%          0: 0.0%          0: 0.0%      
46866
tree-inline.c:2380 (copy_tree_r)                    5885104: 4.4%          0: 0.0%        140: 0.0%      33832: 
0.2%     177906
rtl.c:249 (copy_rtx)                                5910744: 4.5%          0: 0.0%          0: 0.0%          0: 0.0%     
533747
cfg.c:135 (alloc_block)                             8026200: 6.1%          0: 0.0%          0: 0.0%    1234800: 8.5%      
77175
emit-rtl.c:3271 (make_insn_raw)                     8657000: 6.5%          0: 0.0%          0: 0.0%          0: 0.0%     
216425
genrtl.c:17 (gen_rtx_fmt_ee)                        9717744: 7.3%          0: 0.0%      16596: 0.1%          0: 0.0%     
811195



-- 


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


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

* [Bug middle-end/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
                   ` (12 preceding siblings ...)
  2005-07-25  2:06 ` pinskia at gcc dot gnu dot org
@ 2005-07-25  3:00 ` pinskia at gcc dot gnu dot org
  2005-09-18 19:40 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-25  3:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-25 02:53 -------
at -O1:
tree-inline.c:1114 (setup_one_parameter)            4402512: 0.3%          0: 0.0%          0: 0.0%          0: 
0.0%     122292
gimple-low.c:529 (record_vars)                      4410336: 0.3%          0: 0.0%          0: 0.0%          0: 0.0%     
183764
cfgrtl.c:3079 (init_rtl_bb_info)                    5156316: 0.3%          0: 0.0%          0: 0.0%     572924: 0.3%     
143231
tree-dfa.c:605 (referenced_var_insert)              5517296: 0.4%          0: 0.0%          0: 0.0%          0: 0.0%     
689662
tree-ssa-alias.c:2027 (get_ptr_info)                5607720: 0.4%          0: 0.0%          0: 0.0%          0: 0.0%     
467310
genrtl.c:349 (gen_rtx_fmt_i00)                      6395728: 0.4%          0: 0.0%     243072: 0.6%          0: 
0.0%     414925
tree-ssa-dom.c:2713 (record_equivalences_from_st    6769728: 0.4%          0: 0.0%          0: 0.0%          
0: 0.0%     188048
tree-vn.c:69 (make_value_handle)                    7638648: 0.5%          0: 0.0%          0: 0.0%          0: 0.0%     
318277
gimplify.c:337 (create_tmp_var_raw)                 7022976: 0.5%          0: 0.0%     660096: 1.7%          0: 
0.0%      80032
emit-rtl.c:3303 (make_jump_insn_raw)                7961520: 0.5%          0: 0.0%          0: 0.0%    1061536: 
0.5%     132692
tree-inline.c:2026 (expand_call_inline)             6720660: 0.4%          0: 0.0%    1598820: 4.0%    
1109264: 0.5%     138658
bitmap.c:256 (bitmap_gc_alloc)                      8356064: 0.5%          0: 0.0%          0: 0.0%          0: 0.0%     
522254
tree-ssa-dom.c:1435 (build_and_record_new_cond)     8475300: 0.6%          0: 0.0%          0: 0.0%          
0: 0.0%     235425
tree-phinodes.c:156 (allocate_phi_node)             8808280: 0.6%          0: 0.0%          0: 0.0%      35928: 
0.0%      53093
rtl.c:249 (copy_rtx)                                9387708: 0.6%          0: 0.0%          0: 0.0%          0: 0.0%     
815316
varray.c:141 (varray_init)                          9915332: 0.6%     481852: 0.2%     370040: 0.9%    1646296: 
0.7%     116380
tree-iterator.c:47 (alloc_stmt_list)               11277432: 0.7%          0: 0.0%      33024: 0.1%          0: 0.0%     
471269
tree-inline.c:2115 (expand_call_inline)            11455320: 0.7%          0: 0.0%          0: 0.0%          0: 0.0%     
477305
bitmap.c:137 (bitmap_element_allocate)             12138192: 0.8%          0: 0.0%          0: 0.0%    
1348688: 0.6%     337172
integrate.c:107 (copy_decl_for_inlining)           10045152: 0.7%          0: 0.0%    2254752: 5.7%          0: 
0.0%     128124
ggc-common.c:193 (ggc_calloc)                      11854012: 0.8%    8921200: 4.4%     951568: 2.4%    
1855448: 0.8%       1989
cfg.c:211 (connect_dest)                           13400200: 0.9%     319208: 0.2%          0: 0.0%     122512: 
0.1%     551052
cfg.c:202 (connect_src)                            13414968: 0.9%          0: 0.0%          0: 0.0%          0: 0.0%     
558957
gimplify.c:293 (create_artificial_label)           15505400: 1.0%          0: 0.0%          0: 0.0%          0: 0.0%     
155054
emit-rtl.c:3271 (make_insn_raw)                    16349680: 1.1%          0: 0.0%          0: 0.0%          0: 0.0%     
408742
cgraph.c:168 (cgraph_create_node)                  16722960: 1.1%          0: 0.0%      18480: 0.0%    
1116096: 0.5%     139512
tree-dfa.c:198 (create_tree_ann)                   19402916: 1.3%          0: 0.0%       3432: 0.0%          0: 0.0%     
373199
genrtl.c:17 (gen_rtx_fmt_ee)                       19784544: 1.3%          0: 0.0%      28836: 0.1%          0: 0.0%    
1651115
cgraph.c:289 (cgraph_create_edge)                  21175504: 1.4%          0: 0.0%          0: 0.0%    1512536: 
0.7%     378134
tree-inline.c:421 (remap_block)                    18648780: 1.2%          0: 0.0%    4599960:11.6%    
3099832: 1.4%     387479
varray.c:174 (varray_grow)                         30049364: 2.0%   29294196:14.5%     323700: 0.8%   
13783580: 6.2%       3892
tree-iterator.c:165 (tsi_link_after)               31498620: 2.0%          0: 0.0%      49488: 0.1%          0: 0.0%    
2629009
convert.c:457 (convert_to_integer)                 32215072: 2.1%          0: 0.0%         32: 0.0%          0: 0.0%    
1006722
tree-ssanames.c:147 (make_ssa_name)                33333404: 2.2%          0: 0.0%    5705492:14.4%          
0: 0.0%     750748
tree-dfa.c:175 (create_stmt_ann)                   56146220: 3.7%   17495556: 8.7%         52: 0.0%          0: 
0.0%    1416189
cfg.c:135 (alloc_block)                            58116344: 3.8%          0: 0.0%          0: 0.0%    8940976: 4.0%     
558811
integrate.c:115 (copy_decl_for_inlining)           52512932: 3.4%          0: 0.0%    6518784:16.5%          0: 
0.0%     609815
tree-inline.c:2380 (copy_tree_r)                   73114672: 4.8%          0: 0.0%        140: 0.0%     438288: 
0.2%    2164254
tree-inline.c:879 (copy_cfg_body)                  99835920: 6.5%          0: 0.0%          0: 0.0%   28841488:
12.9%     138661
except.c:636 (collect_eh_region_array)            646781448:42.1%          0: 0.0%          0: 0.0%  
141682844:63.3%      11016




-- 


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


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

* [Bug middle-end/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
                   ` (13 preceding siblings ...)
  2005-07-25  3:00 ` pinskia at gcc dot gnu dot org
@ 2005-09-18 19:40 ` pinskia at gcc dot gnu dot org
  2005-09-18 19:52 ` rguenth at gcc dot gnu dot org
  2005-09-18 19:57 ` rguenth at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-18 19:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-18 19:40 -------
at -O1 on the mainline, we use over 1GB of memory.

-- 


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


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

* [Bug middle-end/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
                   ` (14 preceding siblings ...)
  2005-09-18 19:40 ` pinskia at gcc dot gnu dot org
@ 2005-09-18 19:52 ` rguenth at gcc dot gnu dot org
  2005-09-18 19:57 ` rguenth at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-09-18 19:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-09-18 19:52 -------
With the C++-initializer cleanup and the gcse.c O(n^2) complexity removal (and
ipa-eh) I get on x86_64 at -O2

 garbage collection    :   2.77 ( 1%) usr   0.03 ( 1%) sys   2.82 ( 1%) wall   
   0 kB ( 0%) ggc
 callgraph construction:   0.65 ( 0%) usr   0.11 ( 3%) sys   0.74 ( 0%) wall   
7688 kB ( 1%) ggc
 callgraph optimization:   0.10 ( 0%) usr   0.00 ( 0%) sys   0.11 ( 0%) wall   
4427 kB ( 0%) ggc
 ipa nothrow           :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall   
   0 kB ( 0%) ggc
 ipa reference         :   0.23 ( 0%) usr   0.03 ( 1%) sys   0.26 ( 0%) wall   
  52 kB ( 0%) ggc
 ipa pure const        :   0.04 ( 0%) usr   0.00 ( 0%) sys   0.04 ( 0%) wall   
   0 kB ( 0%) ggc
 ipa type escape       :   0.24 ( 0%) usr   0.03 ( 1%) sys   0.27 ( 0%) wall   
   0 kB ( 0%) ggc
 cfg construction      :   0.31 ( 0%) usr   0.00 ( 0%) sys   0.33 ( 0%) wall   
6596 kB ( 0%) ggc
 cfg cleanup           :   5.26 ( 2%) usr   0.00 ( 0%) sys   5.25 ( 2%) wall   
1914 kB ( 0%) ggc
 trivially dead code   :   1.82 ( 1%) usr   0.00 ( 0%) sys   1.85 ( 1%) wall   
   0 kB ( 0%) ggc
 life analysis         :   6.33 ( 3%) usr   0.00 ( 0%) sys   6.38 ( 3%) wall  
12971 kB ( 1%) ggc
 life info update      :   1.23 ( 1%) usr   0.00 ( 0%) sys   1.24 ( 1%) wall   
 782 kB ( 0%) ggc
 alias analysis        :   2.87 ( 1%) usr   0.00 ( 0%) sys   2.94 ( 1%) wall  
19497 kB ( 1%) ggc
 register scan         :   1.29 ( 1%) usr   0.00 ( 0%) sys   1.34 ( 1%) wall   
  50 kB ( 0%) ggc
 rebuild jump labels   :   0.44 ( 0%) usr   0.00 ( 0%) sys   0.49 ( 0%) wall   
   0 kB ( 0%) ggc
 preprocessing         :   0.09 ( 0%) usr   0.03 ( 1%) sys   0.15 ( 0%) wall   
1293 kB ( 0%) ggc
 parser                :   1.14 ( 1%) usr   0.25 ( 6%) sys   1.34 ( 1%) wall  
97198 kB ( 7%) ggc
 name lookup           :   0.33 ( 0%) usr   0.14 ( 3%) sys   0.41 ( 0%) wall  
13536 kB ( 1%) ggc
 inline heuristics     :   5.87 ( 3%) usr   0.04 ( 1%) sys   5.91 ( 3%) wall  
20103 kB ( 1%) ggc
 integration           :  24.24 (11%) usr   0.17 ( 4%) sys  24.41 (11%) wall 
387997 kB (27%) ggc
 tree gimplify         :   0.24 ( 0%) usr   0.00 ( 0%) sys   0.31 ( 0%) wall  
10383 kB ( 1%) ggc
 tree eh               :   0.64 ( 0%) usr   0.05 ( 1%) sys   0.72 ( 0%) wall  
35363 kB ( 3%) ggc
 tree CFG construction :   0.24 ( 0%) usr   0.08 ( 2%) sys   0.29 ( 0%) wall  
40040 kB ( 3%) ggc
 tree CFG cleanup      :   5.55 ( 3%) usr   0.01 ( 0%) sys   5.59 ( 3%) wall  
13859 kB ( 1%) ggc
 tree VRP              :   2.37 ( 1%) usr   0.06 ( 1%) sys   2.38 ( 1%) wall  
10668 kB ( 1%) ggc
 tree copy propagation :   4.10 ( 2%) usr   0.17 ( 4%) sys   4.33 ( 2%) wall   
 571 kB ( 0%) ggc
 tree store copy prop  :   0.93 ( 0%) usr   0.03 ( 1%) sys   0.93 ( 0%) wall   
 116 kB ( 0%) ggc
 tree find ref. vars   :   0.55 ( 0%) usr   0.03 ( 1%) sys   0.58 ( 0%) wall  
45155 kB ( 3%) ggc
 tree PTA              :   6.25 ( 3%) usr   0.06 ( 1%) sys   6.35 ( 3%) wall  
18646 kB ( 1%) ggc
 tree alias analysis   :   9.24 ( 4%) usr   0.32 ( 8%) sys   9.74 ( 4%) wall  
35335 kB ( 3%) ggc
 tree PHI insertion    :  10.35 ( 5%) usr   0.03 ( 1%) sys  10.40 ( 5%) wall  
15152 kB ( 1%) ggc
 tree SSA rewrite      :   3.80 ( 2%) usr   0.06 ( 1%) sys   3.80 ( 2%) wall  
76957 kB ( 5%) ggc
 tree SSA other        :   0.70 ( 0%) usr   0.15 ( 4%) sys   0.83 ( 0%) wall   
 231 kB ( 0%) ggc
 tree SSA incremental  :  10.92 ( 5%) usr   0.03 ( 1%) sys  10.94 ( 5%) wall  
13942 kB ( 1%) ggc
 tree operand scan     :   5.05 ( 2%) usr   0.45 (11%) sys   5.22 ( 2%) wall  
43681 kB ( 3%) ggc
 dominator optimization:  12.79 ( 6%) usr   0.06 ( 1%) sys  12.81 ( 6%) wall 
125643 kB ( 9%) ggc
 tree SRA              :   0.48 ( 0%) usr   0.00 ( 0%) sys   0.46 ( 0%) wall   
6695 kB ( 0%) ggc
 tree STORE-CCP        :   0.91 ( 0%) usr   0.01 ( 0%) sys   0.94 ( 0%) wall   
 188 kB ( 0%) ggc
 tree CCP              :   1.42 ( 1%) usr   0.01 ( 0%) sys   1.48 ( 1%) wall   
3277 kB ( 0%) ggc
 tree split crit edges :   0.15 ( 0%) usr   0.01 ( 0%) sys   0.14 ( 0%) wall  
13889 kB ( 1%) ggc
 tree reassociation    :   0.18 ( 0%) usr   0.00 ( 0%) sys   0.17 ( 0%) wall   
   0 kB ( 0%) ggc
 tree PRE              :   2.15 ( 1%) usr   0.58 (14%) sys   2.78 ( 1%) wall   
9052 kB ( 1%) ggc
 tree FRE              :   3.13 ( 1%) usr   0.52 (12%) sys   3.58 ( 2%) wall  
26639 kB ( 2%) ggc
 tree code sinking     :   0.64 ( 0%) usr   0.04 ( 1%) sys   0.66 ( 0%) wall   
  88 kB ( 0%) ggc
 tree linearize phis   :   0.13 ( 0%) usr   0.00 ( 0%) sys   0.12 ( 0%) wall   
   2 kB ( 0%) ggc
 tree forward propagate:   0.30 ( 0%) usr   0.00 ( 0%) sys   0.40 ( 0%) wall   
4303 kB ( 0%) ggc
 tree conservative DCE :   2.70 ( 1%) usr   0.07 ( 2%) sys   2.80 ( 1%) wall   
   0 kB ( 0%) ggc
 tree aggressive DCE   :   0.85 ( 0%) usr   0.00 ( 0%) sys   0.85 ( 0%) wall   
   0 kB ( 0%) ggc
 tree DSE              :   0.93 ( 0%) usr   0.00 ( 0%) sys   0.92 ( 0%) wall   
 589 kB ( 0%) ggc
 PHI merge             :   0.05 ( 0%) usr   0.00 ( 0%) sys   0.08 ( 0%) wall   
 251 kB ( 0%) ggc
 tree loop bounds      :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall   
 185 kB ( 0%) ggc
 loop invariant motion :   0.10 ( 0%) usr   0.00 ( 0%) sys   0.10 ( 0%) wall   
   0 kB ( 0%) ggc
 tree canonical iv     :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall   
 151 kB ( 0%) ggc
 scev constant prop    :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 0%) wall   
  60 kB ( 0%) ggc
 tree iv optimization  :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall   
 635 kB ( 0%) ggc
 tree loop init        :   0.54 ( 0%) usr   0.00 ( 0%) sys   0.51 ( 0%) wall   
   5 kB ( 0%) ggc
 tree copy headers     :   0.20 ( 0%) usr   0.00 ( 0%) sys   0.22 ( 0%) wall   
 851 kB ( 0%) ggc
 tree SSA uncprop      :   0.17 ( 0%) usr   0.00 ( 0%) sys   0.17 ( 0%) wall   
   0 kB ( 0%) ggc
 tree SSA to normal    :   2.10 ( 1%) usr   0.03 ( 1%) sys   2.14 ( 1%) wall   
4498 kB ( 0%) ggc
 tree rename SSA copies:   0.50 ( 0%) usr   0.07 ( 2%) sys   0.57 ( 0%) wall   
   0 kB ( 0%) ggc
 dominance frontiers   :  13.39 ( 6%) usr   0.00 ( 0%) sys  13.37 ( 6%) wall   
   0 kB ( 0%) ggc
 control dependences   :   0.16 ( 0%) usr   0.00 ( 0%) sys   0.16 ( 0%) wall   
   0 kB ( 0%) ggc
 expand                :   8.24 ( 4%) usr   0.06 ( 1%) sys   8.26 ( 4%) wall 
146387 kB (10%) ggc
 varconst              :   0.07 ( 0%) usr   0.00 ( 0%) sys   0.10 ( 0%) wall   
 169 kB ( 0%) ggc
 jump                  :   0.70 ( 0%) usr   0.01 ( 0%) sys   0.66 ( 0%) wall  
14072 kB ( 1%) ggc
 CSE                   :   3.68 ( 2%) usr   0.00 ( 0%) sys   3.63 ( 2%) wall   
6495 kB ( 0%) ggc
 loop analysis         :   1.12 ( 1%) usr   0.02 ( 0%) sys   1.20 ( 1%) wall   
7989 kB ( 1%) ggc
 global CSE            :   0.03 ( 0%) usr   0.02 ( 0%) sys   0.01 ( 0%) wall   
   0 kB ( 0%) ggc
 CPROP 1               :   0.16 ( 0%) usr   0.00 ( 0%) sys   0.17 ( 0%) wall   
 874 kB ( 0%) ggc
 PRE                   :   0.15 ( 0%) usr   0.02 ( 0%) sys   0.16 ( 0%) wall   
 185 kB ( 0%) ggc
 CPROP 2               :   0.15 ( 0%) usr   0.00 ( 0%) sys   0.16 ( 0%) wall   
 395 kB ( 0%) ggc
 bypass jumps          :   0.14 ( 0%) usr   0.00 ( 0%) sys   0.16 ( 0%) wall   
 356 kB ( 0%) ggc
 CSE 2                 :   1.79 ( 1%) usr   0.00 ( 0%) sys   1.76 ( 1%) wall   
1696 kB ( 0%) ggc
 branch prediction     :   1.60 ( 1%) usr   0.00 ( 0%) sys   1.67 ( 1%) wall   
2539 kB ( 0%) ggc
 flow analysis         :   0.25 ( 0%) usr   0.00 ( 0%) sys   0.26 ( 0%) wall   
   0 kB ( 0%) ggc
 combiner              :   1.33 ( 1%) usr   0.02 ( 0%) sys   1.36 ( 1%) wall   
3503 kB ( 0%) ggc
 if-conversion         :   0.80 ( 0%) usr   0.00 ( 0%) sys   0.77 ( 0%) wall   
 745 kB ( 0%) ggc
 regmove               :   1.01 ( 0%) usr   0.00 ( 0%) sys   0.99 ( 0%) wall   
  31 kB ( 0%) ggc
 mode switching        :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall   
   0 kB ( 0%) ggc
 local alloc           :   2.02 ( 1%) usr   0.03 ( 1%) sys   2.07 ( 1%) wall   
4515 kB ( 0%) ggc
 global alloc          :   7.72 ( 4%) usr   0.08 ( 2%) sys   7.75 ( 4%) wall  
29349 kB ( 2%) ggc
 reload CSE regs       :  17.57 ( 8%) usr   0.01 ( 0%) sys  17.60 ( 8%) wall  
15295 kB ( 1%) ggc
 flow 2                :   0.45 ( 0%) usr   0.00 ( 0%) sys   0.40 ( 0%) wall   
2936 kB ( 0%) ggc
 if-conversion 2       :   0.42 ( 0%) usr   0.00 ( 0%) sys   0.39 ( 0%) wall   
   0 kB ( 0%) ggc
 peephole 2            :   0.40 ( 0%) usr   0.00 ( 0%) sys   0.43 ( 0%) wall   
 293 kB ( 0%) ggc
 rename registers      :   0.60 ( 0%) usr   0.06 ( 1%) sys   0.66 ( 0%) wall   
  34 kB ( 0%) ggc
 scheduling 2          :   2.48 ( 1%) usr   0.06 ( 1%) sys   2.57 ( 1%) wall  
26856 kB ( 2%) ggc
 machine dep reorg     :   0.40 ( 0%) usr   0.00 ( 0%) sys   0.40 ( 0%) wall   
 536 kB ( 0%) ggc
 reorder blocks        :   0.72 ( 0%) usr   0.00 ( 0%) sys   0.70 ( 0%) wall  
10564 kB ( 1%) ggc
 final                 :   1.58 ( 1%) usr   0.01 ( 0%) sys   1.58 ( 1%) wall   
3855 kB ( 0%) ggc
 TOTAL                 : 215.82             4.16           220.06           
1413094 kB


-- 


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


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

* [Bug middle-end/12392] very long optimized compile
  2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
                   ` (15 preceding siblings ...)
  2005-09-18 19:52 ` rguenth at gcc dot gnu dot org
@ 2005-09-18 19:57 ` rguenth at gcc dot gnu dot org
  16 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-09-18 19:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-09-18 19:57 -------
Peaks at 514545kB with these patches. 

-- 


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


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

end of thread, other threads:[~2005-09-18 19:57 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-24 18:10 [Bug c++/12392] New: very long optimized compile john dot skinner at med dot ge dot com
2003-09-24 18:13 ` [Bug c++/12392] " john dot skinner at med dot ge dot com
2003-09-24 18:14 ` john dot skinner at med dot ge dot com
2003-09-25  8:15 ` ehrhardt at mathematik dot uni-ulm dot de
2003-09-29  0:29 ` pinskia at gcc dot gnu dot org
2003-09-29  0:44 ` pinskia at gcc dot gnu dot org
2003-10-28 15:27 ` [Bug optimization/12392] " pinskia at gcc dot gnu dot org
2003-11-26 19:10 ` pinskia at gcc dot gnu dot org
2004-05-22  5:07 ` [Bug rtl-optimization/12392] " pinskia at gcc dot gnu dot org
2004-05-22  9:48 ` giovannibajo at libero dot it
2004-06-08  0:57 ` pinskia at gcc dot gnu dot org
2004-09-08  5:58 ` [Bug middle-end/12392] " pinskia at gcc dot gnu dot org
2004-11-21  4:53 ` pinskia at gcc dot gnu dot org
2005-07-25  2:06 ` pinskia at gcc dot gnu dot org
2005-07-25  3:00 ` pinskia at gcc dot gnu dot org
2005-09-18 19:40 ` pinskia at gcc dot gnu dot org
2005-09-18 19:52 ` rguenth at gcc dot gnu dot org
2005-09-18 19:57 ` rguenth 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).