public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Alexandre Oliva <aoliva@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] set strub eh probs Date: Sat, 30 Sep 2023 01:37:37 +0000 (GMT) [thread overview] Message-ID: <20230930013737.1D1EA3858D32@sourceware.org> (raw) https://gcc.gnu.org/g:f0edeaa8fa7972251939d6cc1a3153afbd291610 commit f0edeaa8fa7972251939d6cc1a3153afbd291610 Author: Alexandre Oliva <oliva@gnu.org> 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
next reply other threads:[~2023-09-30 1:37 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-09-30 1:37 Alexandre Oliva [this message] 2023-09-30 2:30 Alexandre Oliva 2023-09-30 4:15 Alexandre Oliva 2023-10-20 3:48 Alexandre Oliva
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230930013737.1D1EA3858D32@sourceware.org \ --to=aoliva@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).