From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 7E1ED3858005; Fri, 20 Oct 2023 03:48:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E1ED3858005 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697773722; bh=40NnuIZju46qrfYWk1szPfUqqYzDn5mZXa1HHbYR5S8=; h=From:To:Subject:Date:From; b=rrn+86VUcvMhflEAj0EH9KPsRwj7QRB0lbbAhkM5+CDab/rXKb7OeoICxNzNdUbsC 8ttVPbqWy3lkU90QBx3vAzJlWvbmK4WvZhpkQlkL88qRAodxUYP0uimcW5bXdg4rnr PqVYo7Gb7bC2SW4TL0hnO2H5lgtGjA9oth4ErL0A= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alexandre Oliva To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] set strub eh probs X-Act-Checkin: gcc X-Git-Author: Alexandre Oliva X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: 2e32e1f29b48de17fd216c1aefccaefcefccc97d X-Git-Newrev: 29c83c9cb47ab56b08ddb06603f7726d62065501 Message-Id: <20231020034842.7E1ED3858005@sourceware.org> Date: Fri, 20 Oct 2023 03:48:42 +0000 (GMT) List-Id: https://gcc.gnu.org/g:29c83c9cb47ab56b08ddb06603f7726d62065501 commit 29c83c9cb47ab56b08ddb06603f7726d62065501 Author: Alexandre Oliva Date: Thu Oct 19 02:53:09 2023 -0300 set strub eh probs Diff: --- gcc/ipa-strub.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ipa-strub.cc b/gcc/ipa-strub.cc index 73a8771315c3..861cd0cffa0e 100644 --- a/gcc/ipa-strub.cc +++ b/gcc/ipa-strub.cc @@ -2068,8 +2068,12 @@ gsi_insert_finally_seq_after_call (gimple_stmt_iterator gsi, gimple_seq seq) gsi_insert_before (&gsi, resx, GSI_SAME_STMT); /* Finally, wire the EH cleanup block into the CFG. */ - make_eh_edges (stmt); - add_call_edges_for_seq (seq, single_pred_edge (bb_eh_cleanup)->count ()); + edge neeh = make_eh_edges (stmt); + neeh->probability = profile_probability::never (); + gcc_checking_assert (neeh->dest == bb_eh_cleanup); + gcc_checking_assert (!neeh->dest->count.initialized_p ()); + neeh->dest->count = neeh->count (); + add_call_edges_for_seq (seq, neeh->dest->count); } /* Copy the attribute list at *ATTRS, minus any NAME attributes, leaving