This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/26830] [4.1/4.2 Regression] Insane amount of compile-time / memory needed at -O1 and above



------- Comment #10 from bonzini at gnu dot org  2006-03-24 14:15 -------
so it may even be that something creates an incredibly interconnected CFG?

can you add a test somewhere in execute_one_pass to print the number of basic
blocks and the total number of edges?  along these lines:

if (pass->name && current_function_decl && (curr_properties & PROP_cfg)) {
  tot_bb = tot_edge = 0;
  FOR_EACH_BB (bb)
    tot_bb++, tot_edge += EDGE_COUNT (bb->succ);
  fprintf ("%s %s %d %d %f", pass->name, IDENTIFIER_POINTER
                   (DECL_ASSEMBLER_NAME (current_function_decl)), 
                   tot_bb, tot_edge, ((double)tot_edge) / tot_bb);
}

Paolo


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]