]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/tree-vect-loop.cc
Fix optimize_mask_stores profile update
[thirdparty/gcc.git] / gcc / tree-vect-loop.cc
index 7d917bfd72c06d49e3ac90f385f14f2376f354f3..61343eadee55104efeb751808fb8fcc492daffd7 100644 (file)
@@ -11680,6 +11680,7 @@ optimize_mask_stores (class loop *loop)
       efalse = make_edge (bb, store_bb, EDGE_FALSE_VALUE);
       /* Put STORE_BB to likely part.  */
       efalse->probability = profile_probability::unlikely ();
+      e->probability = efalse->probability.invert ();
       store_bb->count = efalse->count ();
       make_single_succ_edge (store_bb, join_bb, EDGE_FALLTHRU);
       if (dom_info_available_p (CDI_DOMINATORS))