diff options
author | Richard Biener <rguenther@suse.de> | 2022-01-12 15:25:07 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-01-12 16:18:20 +0100 |
commit | 2f62294dec1f3af59dd7505c058b0af38c2d1524 (patch) | |
tree | aab37aab5c09a20b6c7444090899ef3f13c171c8 /gcc/tree-ssa-tail-merge.c | |
parent | 2c16dfe6268eeeb4b7924ff423e274fa00894a4d (diff) | |
download | gcc-2f62294dec1f3af59dd7505c058b0af38c2d1524.zip gcc-2f62294dec1f3af59dd7505c058b0af38c2d1524.tar.gz gcc-2f62294dec1f3af59dd7505c058b0af38c2d1524.tar.bz2 |
tree-optimization/103990 - fix CFG cleanup regression from PRE change
This adjusts the CFG cleanup flow back to what it was before the
last change which fixes the observed regression of 541.leela_r with
LTO and FDO.
2022-01-12 Richard Biener <rguenther@suse.de>
PR tree-optimization/103990
* tree-pass.h (tail_merge_optimize): Drop unused argument.
* tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
* tree-ssa-pre.c (pass_pre::execute): Retain TODO_cleanup_cfg
and adjust call to tail_merge_optimize.
Diffstat (limited to 'gcc/tree-ssa-tail-merge.c')
-rw-r--r-- | gcc/tree-ssa-tail-merge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-tail-merge.c b/gcc/tree-ssa-tail-merge.c index fd33380..8e1ea1a 100644 --- a/gcc/tree-ssa-tail-merge.c +++ b/gcc/tree-ssa-tail-merge.c @@ -1724,7 +1724,7 @@ update_debug_stmts (void) /* Runs tail merge optimization. */ unsigned int -tail_merge_optimize (unsigned int todo, bool need_crit_edge_split) +tail_merge_optimize (bool need_crit_edge_split) { int nr_bbs_removed_total = 0; int nr_bbs_removed; @@ -1814,5 +1814,5 @@ tail_merge_optimize (unsigned int todo, bool need_crit_edge_split) timevar_pop (TV_TREE_TAIL_MERGE); - return todo; + return 0; } |