public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Make store likely in optimize_mask_stores
@ 2023-07-27 18:33 Jan Hubicka
  0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2023-07-27 18:33 UTC (permalink / raw)
  To: gcc-patches

Hi,
as discussed with Richard, we want store to be likely in
optimize_mask_stores.

Bootstrapped/regtested x86_64-linux, comitted.

gcc/ChangeLog:

	* tree-vect-loop.cc (optimize_mask_stores): Make store
	likely.

diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc
index 2561552fe6e..a83952aff60 100644
--- a/gcc/tree-vect-loop.cc
+++ b/gcc/tree-vect-loop.cc
@@ -11741,7 +11741,7 @@ optimize_mask_stores (class loop *loop)
       e->flags = EDGE_TRUE_VALUE;
       efalse = make_edge (bb, store_bb, EDGE_FALSE_VALUE);
       /* Put STORE_BB to likely part.  */
-      efalse->probability = profile_probability::unlikely ();
+      efalse->probability = profile_probability::likely ();
       e->probability = efalse->probability.invert ();
       store_bb->count = efalse->count ();
       make_single_succ_edge (store_bb, join_bb, EDGE_FALLTHRU);

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

only message in thread, other threads:[~2023-07-27 18:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-27 18:33 Make store likely in optimize_mask_stores 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).