[Bug lto/45375] [meta-bug] Issues with building Mozilla with LTO

hubicka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Apr 3 10:09:00 GMT 2011


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

--- Comment #64 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-04-03 10:08:34 UTC ---
Some detailed stats on WPA memory usage.
Before IPA:



ipa-prop.c:2820 (ipa_read_node_info)                      0: 0.0%    8895232:
1.1%   24998944: 0.7%     395040: 0.1%     558297
tree.c:5898 (decl_priority_info)                   12295536: 0.7%          0:
0.0%   27391696: 0.8%          0: 0.0%    2480452
tree.c:1567 (build_string)                         16376223: 0.9%          0:
0.0%   39728388: 1.2%    4876275: 1.1%    1227602
lto-section-in.c:435 (lto_new_in_decl_state)           2280: 0.0%          0:
0.0%   44349120: 1.3%          0: 0.0%     369595
ipa-ref.c:54 (ipa_record_reference)                       0: 0.0% 
117135752:14.1%   45299512: 1.3%   38560128: 8.5%     488972
lto-streamer-in.c:1875 (lto_materialize_tree)      44134352: 2.5%          0:
0.0%   66615480: 1.9%       4264: 0.0%    1107669
ggc-common.c:253 (ggc_cleared_alloc_ptr_array_tw       1480: 0.0% 
250512784:30.1%   67551704: 2.0%     157632: 0.0%       7072
cgraph.c:1015 (cgraph_create_edge_1)                      0: 0.0%          0:
0.0%   68064464: 2.0%          0: 0.0%     654466
lto-streamer-in.c:2307 (lto_input_ts_constructor   33062632: 1.9% 
111658560:13.4%  102441008: 3.0%   56848328:12.6%     486571
lto/lto.c:214 (lto_read_in_decl_state)                 2288: 0.0%          0:
0.0%  110826912: 3.2%   21320304: 4.7%    2587165
tree.c:1257 (build_int_cst_wide)                  143425600: 8.1%          0:
0.0%  199678728: 5.8%  113095664:25.0%      60257
cgraph.c:459 (cgraph_allocate_node)                       0: 0.0%          0:
0.0%  236635872: 6.9%          0: 0.0%     672261
toplev.c:1027 (realloc_for_line_map)                      0: 0.0% 
335593472:40.4%  335550464: 9.8%  134297600:29.7%         15
lto-streamer-in.c:1881 (lto_materialize_tree)    1302081688:73.2%          0:
0.0% 1968493840:57.3%   74550688:16.5%   29259517
Total                                            1777935767        831048528   
   3436852692        452441891         49428016
source location                                     Garbage            Freed   
         Leak         Overhead            Times
-------------------------------------------------------

after IPA
stringpool.c:75 (alloc_node)                              0: 0.0%          0:
0.0%   17709680: 0.5%          0: 0.0%     442742
stringpool.c:58 (stringpool_ggc_alloc)                    0: 0.0%          0:
0.0%   22641304: 0.7%    1646320: 0.3%     442742
tree.c:1297 (build_int_cst_wide)                   10611640: 0.6%          0:
0.0%   21902960: 0.6%          0: 0.0%     812865
tree.c:5898 (decl_priority_info)                   12376576: 0.7%          0:
0.0%   27310672: 0.8%          0: 0.0%    2480453
lto-section-in.c:435 (lto_new_in_decl_state)         162720: 0.0%          0:
0.0%   44188680: 1.3%          0: 0.0%     369595
tree.c:1567 (build_string)                         17659049: 1.0%          0:
0.0%   38445562: 1.1%    4876275: 1.0%    1227602
cgraph.c:1015 (cgraph_create_edge_1)                      0: 0.0%          0:
0.0%   68064464: 2.0%          0: 0.0%     654466
ggc-common.c:253 (ggc_cleared_alloc_ptr_array_tw      26888: 0.0% 
258338128:27.6%   75336800: 2.2%     171272: 0.0%       7667
gimple.c:4187 (iterative_hash_gimple_type)         78311648: 4.3%          0:
0.0%     260960: 0.0%          0: 0.0%    4910788
ipa-ref.c:54 (ipa_record_reference)                       0: 0.0% 
156312592:16.7%   82529352: 2.4%   63464176:13.2%     506799
lto-streamer-in.c:1875 (lto_materialize_tree)      49735872: 2.8%          0:
0.0%   61013960: 1.8%       4264: 0.0%    1107669
lto/lto.c:214 (lto_read_in_decl_state)               315616: 0.0%          0:
0.0%  110513584: 3.2%   21320304: 4.4%    2587165
lto-symtab.c:156 (lto_symtab_register_decl)       130991616: 7.3%          0:
0.0%    2900408: 0.1%          0: 0.0%    2390929
lto-streamer-in.c:2307 (lto_input_ts_constructor   33062632: 1.8% 
111658560:12.0%  102441008: 3.0%   56848328:11.8%     486571
cgraph.c:459 (cgraph_allocate_node)                       0: 0.0%          0:
0.0%  236635872: 6.9%          0: 0.0%     672261
toplev.c:1027 (realloc_for_line_map)                      0: 0.0% 
335593472:35.9%  335550464: 9.8%  134297600:28.0%         15
tree.c:1257 (build_int_cst_wide)                  144244592: 8.0%          0:
0.0%  198866208: 5.8%  113097680:23.5%      60267
lto-streamer-in.c:1881 (lto_materialize_tree)    1319860448:73.1%          0:
0.0% 1950715080:57.0%   74550688:15.5%   29259517
Total                                            1804556313        934357752   
   3423228826        480284459         49853300
source location                                     Garbage            Freed   
         Leak         Overhead            Times

Kind                   Nodes      Bytes
---------------------------------------
decls                11502734 1829746088
types                4430124  744260832
blocks                     1         88
stmts                      0          0
refs                    8173     485872
exprs                2358594  113315792
constants            2245230   86809013
identifiers           442742   17709680
vecs                   60267  116915440
binfos               1107669  110741304
ssa names                309      27192
constructors          310545    9937440
random kinds         10648367  425935048
lang_decl kinds            0          0
lang_type kinds            0          0
omp clauses                0          0
---------------------------------------
Total                33114755 -839083507
---------------------------------------



More information about the Gcc-bugs mailing list