https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63671
--- Comment #14 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #13) > Author: hubicka > Date: Mon Nov 24 16:15:46 2014 > New Revision: 218024 > > URL: https://gcc.gnu.org/viewcvs?rev=218024&root=gcc&view=rev > Log: > PR ipa/63671 > * ipa-inline-transform.c (can_remove_node_now_p_1): Handle alises > and -fno-devirtualize more carefully. > (can_remove_node_now_p): Update. > > Modified: > trunk/gcc/ChangeLog > trunk/gcc/ipa-inline-transform.c Thanks for the patch. The issue from Comment 0 is now fine. But with -flto it is still slow: markus@x4 ~ % g++ -Ofast -flto=4 -w tramp3d-v4.cpp markus@x4 ~ % ./a.out --cartvis 1.0 0.0 --rhomin 1e-8 -n 20 ... Time spent in iteration: 4.35963 And for -flto -fno-devirtualize I get an ICE: markus@x4 ~ % g++ -Ofast -flto=4 -w -fno-devirtualize tramp3d-v4.cpp tramp3d-v4.cpp: In member function ‘RelationListItem::notifyPreRead() [clone .part.111]’: tramp3d-v4.cpp:64206:1: internal compiler error: Segmentation fault } ^ 0xc7542f crash_signal ../../gcc/gcc/toplev.c:359 0xac92b8 tree_check ../../gcc/gcc/tree.h:2763 0xac92b8 ipa_polymorphic_call_context::get_dynamic_type(tree_node*, tree_node*, tree_node*, gimple_statement_base*) ../../gcc/gcc/ipa-polymorphic-call.c:1593 0xae4c04 ipa_analyze_call_uses ../../gcc/gcc/ipa-prop.c:2173 0xae4c04 ipa_analyze_stmt_uses ../../gcc/gcc/ipa-prop.c:2192 0xae4c04 ipa_analyze_params_uses_in_bb ../../gcc/gcc/ipa-prop.c:2232 0xae4c04 analysis_dom_walker::before_dom_children(basic_block_def*) ../../gcc/gcc/ipa-prop.c:2316 0x12202d7 dom_walker::walk(basic_block_def*) ../../gcc/gcc/domwalk.c:188 0xaeb839 ipa_analyze_node(cgraph_node*) ../../gcc/gcc/ipa-prop.c:2373 0x125c77f ipcp_generate_summary ../../gcc/gcc/ipa-cp.c:4254 0xbba939 execute_ipa_summary_passes(ipa_opt_pass_d*) ../../gcc/gcc/passes.c:2137 0x8d39fe ipa_passes ../../gcc/gcc/cgraphunit.c:2074 0x8d39fe symbol_table::compile() ../../gcc/gcc/cgraphunit.c:2187 0x8d5177 symbol_table::finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2340 0x6ac91b cp_write_global_declarations() ../../gcc/gcc/cp/decl2.c:4688 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report.
