Update iterator of next

next is initialized only in the loop before, it is never updated
in it's own loop.

gcc/ChangeLog:

	2019-11-15  Xiong Hu Luo  <luoxhu@linux.ibm.com>

	* ipa-inline.c (inline_small_functions): Update iterator of next.

From-SVN: r278277
This commit is contained in:
Xiong Hu Luo 2019-11-15 08:15:37 +00:00 committed by Xiong Hu Luo
parent f543bdd3f9
commit 2aae99f7a4
2 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
* ipa-inline.c (inline_small_functions): Update iterator of next.
2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
* lra-spills.c (assign_spill_hard_regs): Check that the spill

View File

@ -1931,12 +1931,15 @@ inline_small_functions (void)
}
if (has_speculative)
for (edge = node->callees; edge; edge = next)
if (edge->speculative && !speculation_useful_p (edge,
edge->aux != NULL))
{
edge->resolve_speculation ();
update = true;
}
{
if (edge->speculative
&& !speculation_useful_p (edge, edge->aux != NULL))
{
edge->resolve_speculation ();
update = true;
}
next = edge->next_callee;
}
if (update)
{
struct cgraph_node *where = node->inlined_to