tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge to update profile.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 1 Jul 2017 12:05:29 +0000 (14:05 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 1 Jul 2017 12:05:29 +0000 (12:05 +0000)
* tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
to update profile.

From-SVN: r249867

gcc/ChangeLog
gcc/tree-vect-loop.c

index dd8e1d27a35da96175e60aad7d25f95b7494f995..c51c18ec59f06cc8730465581ed3d1a5f20758da 100644 (file)
@@ -1,3 +1,8 @@
+2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
+
+       * tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
+       to update profile.
+
 2017-07-01  Jakub Jelinek  <jakub@redhat.com>
 
        PR sanitizer/81262
index bab0cdd3f5145f45e0089582a6beefec05f8c550..c9dd91ba684098355859f942c2554c4d90df9af3 100644 (file)
@@ -7668,7 +7668,7 @@ optimize_mask_stores (struct loop *loop)
       /* Put STORE_BB to likely part.  */
       efalse->probability = profile_probability::unlikely ();
       store_bb->frequency = PROB_ALWAYS - EDGE_FREQUENCY (efalse);
-      make_edge (store_bb, join_bb, EDGE_FALLTHRU);
+      make_single_succ_edge (store_bb, join_bb, EDGE_FALLTHRU);
       if (dom_info_available_p (CDI_DOMINATORS))
        set_immediate_dominator (CDI_DOMINATORS, store_bb, bb);
       if (dump_enabled_p ())