aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2019-11-15 09:38:03 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2019-11-15 09:38:03 +0000
commit2e98ac8676256b3a3e47a3558ca564e109f6fc55 (patch)
treefc1bb5ec609940923fe65dd2b9ebc7fbb4fcaac4 /gcc
parentf0af4848ac40d2342743c9b16416310d61db85b5 (diff)
downloadgcc-2e98ac8676256b3a3e47a3558ca564e109f6fc55.zip
gcc-2e98ac8676256b3a3e47a3558ca564e109f6fc55.tar.gz
gcc-2e98ac8676256b3a3e47a3558ca564e109f6fc55.tar.bz2
ipa-inline.c (inline_small_functions): Move assignment to next before call destroying edge.
2019-11-15 Richard Biener <rguenther@suse.de> * ipa-inline.c (inline_small_functions): Move assignment to next before call destroying edge. From-SVN: r278282
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa-inline.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ca1c5ac..dbc85d5d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2019-11-15 Richard Biener <rguenther@suse.de>
+ * ipa-inline.c (inline_small_functions): Move assignment
+ to next before call destroying edge.
+
+2019-11-15 Richard Biener <rguenther@suse.de>
+
PR tree-optimization/92039
PR tree-optimization/91975
* tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index 85521ed..55e3c5c 100644
--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -1932,13 +1932,13 @@ inline_small_functions (void)
if (has_speculative)
for (edge = node->callees; edge; edge = next)
{
+ next = edge->next_callee;
if (edge->speculative
&& !speculation_useful_p (edge, edge->aux != NULL))
{
edge->resolve_speculation ();
update = true;
}
- next = edge->next_callee;
}
if (update)
{