+2020-05-12 Richard Biener <rguenther@suse.de>
+
+ * cfghooks.c (split_edge): Preserve EDGE_DFS_BACK if set.
+
2020-05-12 Martin Liska <mliska@suse.cz>
PR sanitizer/95033
profile_count count = e->count ();
edge f;
bool irr = (e->flags & EDGE_IRREDUCIBLE_LOOP) != 0;
+ bool back = (e->flags & EDGE_DFS_BACK) != 0;
class loop *loop;
basic_block src = e->src, dest = e->dest;
single_pred_edge (ret)->flags |= EDGE_IRREDUCIBLE_LOOP;
single_succ_edge (ret)->flags |= EDGE_IRREDUCIBLE_LOOP;
}
+ if (back)
+ {
+ single_pred_edge (ret)->flags &= ~EDGE_DFS_BACK;
+ single_succ_edge (ret)->flags |= EDGE_DFS_BACK;
+ }
if (dom_info_available_p (CDI_DOMINATORS))
set_immediate_dominator (CDI_DOMINATORS, ret, single_pred (ret));