public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Jan Hubicka <hubicka@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-3450] Fix profile update in gimple-harden-conditionals.cc Date: Thu, 24 Aug 2023 11:46:22 +0000 (GMT) [thread overview] Message-ID: <20230824114622.76DBC3858426@sourceware.org> (raw) https://gcc.gnu.org/g:a6303a09f946837927a6581d1b1c38e162b0aa1b commit r14-3450-ga6303a09f946837927a6581d1b1c38e162b0aa1b Author: Jan Hubicka <jh@suse.cz> Date: Thu Aug 24 13:46:10 2023 +0200 Fix profile update in gimple-harden-conditionals.cc gcc/ChangeLog: * gimple-harden-conditionals.cc (insert_check_and_trap): Set count of newly build trap bb. Diff: --- gcc/gimple-harden-conditionals.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/gimple-harden-conditionals.cc b/gcc/gimple-harden-conditionals.cc index 2e5a42e9e71b..a299b984375c 100644 --- a/gcc/gimple-harden-conditionals.cc +++ b/gcc/gimple-harden-conditionals.cc @@ -235,6 +235,7 @@ insert_check_and_trap (location_t loc, gimple_stmt_iterator *gsip, gsi_insert_before (gsip, cond, GSI_SAME_STMT); basic_block trp = create_empty_bb (chk); + trp->count = profile_count::zero (); gimple_stmt_iterator gsit = gsi_after_labels (trp); gcall *trap = gimple_build_call (builtin_decl_explicit (BUILT_IN_TRAP), 0);
reply other threads:[~2023-08-24 11:46 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20230824114622.76DBC3858426@sourceware.org \ --to=hubicka@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).