aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-sra.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2021-02-25 11:31:37 +0100
committerRichard Biener <rguenther@suse.de>2021-04-23 12:05:42 +0200
commit58ad6b2802592f1448eed48e8ad4e0e87985cecb (patch)
tree30b72ca9d3cf65ffb8a78916140aca0253359da6 /gcc/ipa-sra.c
parent500305a92ef85e6b87ad428a35221c62f4037b93 (diff)
downloadgcc-58ad6b2802592f1448eed48e8ad4e0e87985cecb.zip
gcc-58ad6b2802592f1448eed48e8ad4e0e87985cecb.tar.gz
gcc-58ad6b2802592f1448eed48e8ad4e0e87985cecb.tar.bz2
First do add_noreturn_fake_exit_edges in connect_infinite_loops_to_exit
Most callers of connect_infinite_loops_to_exit already do this but the few that do not end up with extra exit edges. The following makes that consistent, also matching the post-dominance DFS walk code. 2021-02-25 Richard Biener <rguenther@suse.de> * cfganal.c (connect_infinite_loops_to_exit): First call add_noreturn_fake_exit_edges. * ipa-sra.c (process_scan_results): Do not call the now redundant add_noreturn_fake_exit_edges. * predict.c (tree_estimate_probability): Likewise. (rebuild_frequencies): Likewise. * store-motion.c (one_store_motion_pass): Likewise.
Diffstat (limited to 'gcc/ipa-sra.c')
-rw-r--r--gcc/ipa-sra.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/ipa-sra.c b/gcc/ipa-sra.c
index 1571921..7a89906 100644
--- a/gcc/ipa-sra.c
+++ b/gcc/ipa-sra.c
@@ -2394,7 +2394,6 @@ process_scan_results (cgraph_node *node, struct function *fun,
if (!pdoms_calculated)
{
gcc_checking_assert (cfun);
- add_noreturn_fake_exit_edges ();
connect_infinite_loops_to_exit ();
calculate_dominance_info (CDI_POST_DOMINATORS);
pdoms_calculated = true;