aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-prof.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2015-03-06 17:12:43 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2015-03-06 16:12:43 +0000
commit81b0d9065c3c832af6621e79e9d9b3c2bc684122 (patch)
tree74556e0f51c29f9e930705dfea92110492ad162c /gcc/value-prof.c
parent2c7f8ba5553336092ad3ac0a3a610ee9fedaf3b1 (diff)
downloadgcc-81b0d9065c3c832af6621e79e9d9b3c2bc684122.zip
gcc-81b0d9065c3c832af6621e79e9d9b3c2bc684122.tar.gz
gcc-81b0d9065c3c832af6621e79e9d9b3c2bc684122.tar.bz2
re PR lto/65302 (LTO: ICE internal compiler error: verify_flow_info failed)
PR ipa/65302 * value-prof.c (gimple_ic): Pure dead eh edges when needed. * g++.dg/lto/pr65302_1.C: New testcase. * g++.dg/lto/pr65302_0.C: New testcase. From-SVN: r221244
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r--gcc/value-prof.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c
index 1de8e1b..b16bce8 100644
--- a/gcc/value-prof.c
+++ b/gcc/value-prof.c
@@ -1576,6 +1576,8 @@ gimple_ic (gcall *icall_stmt, struct cgraph_node *direct_call,
PHI_ARG_DEF_FROM_EDGE (phi, e_eh));
}
}
+ if (!stmt_could_throw_p (dcall_stmt))
+ gimple_purge_dead_eh_edges (dcall_bb);
return dcall_stmt;
}