From: Martin Liska Date: Fri, 8 Jun 2018 12:37:49 +0000 (+0200) Subject: Make ipa-pure-const more strict about summary constrains. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a756f161beeb4928b9b54b061ff274b3818d72fd;p=gcc.git Make ipa-pure-const more strict about summary constrains. 2018-06-08 Martin Liska * ipa-pure-const.c (propagate_pure_const): Use ::get at places where we expect an existing summary. From-SVN: r261322 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 38ffb41c649..10231314228 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-06-08 Martin Liska + + * ipa-pure-const.c (propagate_pure_const): Use ::get at places + where we expect an existing summary. + 2018-06-08 Martin Liska * ipa-inline-analysis.c (simple_edge_hints): Use ::get method. diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c index 2cf8c2fa32c..9441d2508ab 100644 --- a/gcc/ipa-pure-const.c +++ b/gcc/ipa-pure-const.c @@ -1477,7 +1477,7 @@ propagate_pure_const (void) } if (avail > AVAIL_INTERPOSABLE) { - funct_state y_l = funct_state_summaries->get_create (y); + funct_state y_l = funct_state_summaries->get (y); if (dump_file && (dump_flags & TDF_DETAILS)) { fprintf (dump_file, @@ -1591,7 +1591,7 @@ propagate_pure_const (void) while (w && !can_free) { struct cgraph_edge *e; - funct_state w_l = funct_state_summaries->get_create (w); + funct_state w_l = funct_state_summaries->get (w); if (w_l->can_free || w->get_availability () == AVAIL_INTERPOSABLE @@ -1606,7 +1606,7 @@ propagate_pure_const (void) e->caller); if (avail > AVAIL_INTERPOSABLE) - can_free = funct_state_summaries->get_create (y)->can_free; + can_free = funct_state_summaries->get (y)->can_free; else can_free = true; } @@ -1619,7 +1619,7 @@ propagate_pure_const (void) w = node; while (w) { - funct_state w_l = funct_state_summaries->get_create (w); + funct_state w_l = funct_state_summaries->get (w); enum pure_const_state_e this_state = pure_const_state; bool this_looping = looping;