From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 8B4793858002; Sat, 30 Sep 2023 04:15:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8B4793858002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696047322; bh=uN/Sxjyi61QIiRiPB0226ofd8I3lLdiQ7pTivctr+A4=; h=From:To:Subject:Date:From; b=ucJQEtz3iXKgMZ0xkcLn/DeeMHF5Pwe52A9ORetzz4Yoemg/hnLrq/7Rsu9PCnbQi YQIT5vwwfHkJxYNZOFiEhGNjFeQMBiBIFvilWh7i4l0BdDQ/bO141NCnYWX6+3uj5L 1STz4j+AcRZstJkw4CpisPm4Sxbhe0p9eUXbilfg= 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: 122825ec7267d7d1c64e8c9f9195969ba2d30060 X-Git-Newrev: 8d56ede79121d548a9831f554fa9c4d6841cd847 Message-Id: <20230930041522.8B4793858002@sourceware.org> Date: Sat, 30 Sep 2023 04:15:22 +0000 (GMT) List-Id: https://gcc.gnu.org/g:8d56ede79121d548a9831f554fa9c4d6841cd847 commit 8d56ede79121d548a9831f554fa9c4d6841cd847 Author: Alexandre Oliva Date: Fri Sep 29 22:35:59 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 73a8771315c..861cd0cffa0 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