public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-3450] Fix profile update in gimple-harden-conditionals.cc
@ 2023-08-24 11:46 Jan Hubicka
  0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2023-08-24 11:46 UTC (permalink / raw)
  To: gcc-cvs

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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-08-24 11:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-24 11:46 [gcc r14-3450] Fix profile update in gimple-harden-conditionals.cc Jan Hubicka

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).