Separate new_edges compute in copy_bbs
authorRichard Biener <rguenther@suse.de>
Wed, 21 Oct 2020 07:45:50 +0000 (09:45 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 21 Oct 2020 08:45:08 +0000 (10:45 +0200)
commit4fa5dc951e9b22b61da8a4a5e0c1731d8b12a763
tree2f11523b9a4e0072f51fe45598c876b6df52ab88
parent878315ae489ebf92e97470d7019da91f1c57436d
Separate new_edges compute in copy_bbs

This separates out a loop finding new_edges from edges in copy_bbs,
making its complexity cheaper overall from total number of succs in
copied bbs times num_edges to num_edges times the complexity of
find_edge.

2020-10-21  Richard Biener  <rguenther@suse.de>

* cfghooks.c (copy_bbs): Split out loop computing new_edges.
gcc/cfghooks.c