Commit 6da47f52 by Jan Hubicka Committed by Jan Hubicka

re PR tree-optimization/58311 (ICE: SIGSEGV in hash_table::find_slot_with_hash()…

re PR tree-optimization/58311 (ICE: SIGSEGV in hash_table::find_slot_with_hash() with -fdevirtualize)

	PR tree-optimization/58311
	* ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.

From-SVN: r202317
parent fc11f321
2013-09-06 Jan Hubicka <jh@suse.cz> 2013-09-06 Jan Hubicka <jh@suse.cz>
PR tree-optimization/58311
* ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
2013-09-06 Jan Hubicka <jh@suse.cz>
* Makefile.in (tree-sra.o): Update dependencies.
* tree-sra.c: Include ipa-utils.h
(scan_function): Use recursive_call_p.
(has_caller_p): New function.
(cgraph_for_node_and_aliases): Count also callers of aliases.
2013-09-06 Jan Hubicka <jh@suse.cz>
PR middle-end/58094 PR middle-end/58094
* cgraph.h (symtab_semantically_equivalent_p): Declare. * cgraph.h (symtab_semantically_equivalent_p): Declare.
* tree-tailcall.c: Include ipa-utils.h. * tree-tailcall.c: Include ipa-utils.h.
......
...@@ -1114,9 +1114,7 @@ ipa_devirt (void) ...@@ -1114,9 +1114,7 @@ ipa_devirt (void)
static bool static bool
gate_ipa_devirt (void) gate_ipa_devirt (void)
{ {
/* FIXME: We should remove the optimize check after we ensure we never run return flag_devirtualize && !in_lto_p && optimize;
IPA passes when not optimizing. */
return flag_devirtualize && !in_lto_p;
} }
namespace { namespace {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment