tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge to update profile.

* tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
	to update profile.

From-SVN: r249867
This commit is contained in:
Jan Hubicka 2017-07-01 14:05:29 +02:00 committed by Jan Hubicka
parent 946ddcdf15
commit c7be78e9b3
2 changed files with 6 additions and 1 deletions

View 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

View 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 ())