From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 1D1EA3858D32; Sat, 30 Sep 2023 01:37:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1D1EA3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696037857; bh=XdHBncAVEw44Izjs/ci9Lz4W3HvSd6RL3hfaENQFBoo=; h=From:To:Subject:Date:From; b=Ji6T0l3kCQAT6FwsXmLQmFfaPhrHGJnFLiv59dFxS3Hpe1EEa4A6FGpDB/1A5wukF ZNPgCXH/ImsivDo1m/8075+HO2B/hiCX88JnBATrtlYywTdYkfBrYKQBh09N0v91Eb nL8Z2ehU3lAr0IZ0fQEE9fyaQNs1VNZQZWVtYxWQ= 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: aeb9f5df638ef4210f4fa3555099f111a36a63ed X-Git-Newrev: f0edeaa8fa7972251939d6cc1a3153afbd291610 Message-Id: <20230930013737.1D1EA3858D32@sourceware.org> Date: Sat, 30 Sep 2023 01:37:37 +0000 (GMT) List-Id: https://gcc.gnu.org/g:f0edeaa8fa7972251939d6cc1a3153afbd291610 commit f0edeaa8fa7972251939d6cc1a3153afbd291610 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..d146b6aa0bc 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