Commit 48182bd6 by Martin Jambor Committed by Martin Jambor

Avoid segfault when dumping IPA-CP lattices for unoptimized functions (PR 92917)

2020-01-03  Martin Jambor  <mjambor@suse.cz>

	PR ipa/92917
	* ipa-cp.c (print_all_lattices): Skip functions without info.

From-SVN: r279859
parent f760c0c7
2020-01-03 Martin Jambor <mjambor@suse.cz>
PR ipa/92917
* ipa-cp.c (print_all_lattices): Skip functions without info.
2020-01-03 Jakub Jelinek <jakub@redhat.com> 2020-01-03 Jakub Jelinek <jakub@redhat.com>
PR target/93089 PR target/93089
......
...@@ -543,8 +543,9 @@ print_all_lattices (FILE * f, bool dump_sources, bool dump_benefits) ...@@ -543,8 +543,9 @@ print_all_lattices (FILE * f, bool dump_sources, bool dump_benefits)
class ipa_node_params *info; class ipa_node_params *info;
info = IPA_NODE_REF (node); info = IPA_NODE_REF (node);
/* Skip constprop clones since we don't make lattices for them. */ /* Skip unoptimized functions and constprop clones since we don't make
if (info->ipcp_orig_node) lattices for them. */
if (!info || info->ipcp_orig_node)
continue; continue;
fprintf (f, " Node: %s:\n", node->dump_name ()); fprintf (f, " Node: %s:\n", node->dump_name ());
count = ipa_get_param_count (info); count = ipa_get_param_count (info);
......
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