summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2021-04-23 11:16:52 +0200
committerRichard Biener <rguenther@suse.de>2021-04-23 12:05:36 +0200
commit500305a92ef85e6b87ad428a35221c62f4037b93 (patch)
tree0df0b455a1745d0eeb0a9ecd7180869a70a03a6f
parentb26485f1af45423980b7bc1206411cf4b8bb84b6 (diff)
downloadgcc-500305a92ef85e6b87ad428a35221c62f4037b93.tar.gz
tree-optimization/100222 - remove redundant mark_irreducible_loops calls
loop_optimizer_init (LOOPS_NORMAL) already performs this (quite expensive) marking. 2021-04-23 Richard Biener <rguenther@suse.de> PR tree-optimization/100222 * predict.c (pass_profile::execute): Remove redundant call to mark_irreducible_loops. (report_predictor_hitrates): Likewise.
-rw-r--r--gcc/predict.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index d0a8e5f8e04..dc2327d4032 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -4096,8 +4096,6 @@ pass_profile::execute (function *fun)
if (dump_file && (dump_flags & TDF_DETAILS))
flow_loops_dump (dump_file, NULL, 0);
- mark_irreducible_loops ();
-
nb_loops = number_of_loops (fun);
if (nb_loops > 1)
scev_initialize ();
@@ -4320,8 +4318,6 @@ report_predictor_hitrates (void)
if (dump_file && (dump_flags & TDF_DETAILS))
flow_loops_dump (dump_file, NULL, 0);
- mark_irreducible_loops ();
-
nb_loops = number_of_loops (cfun);
if (nb_loops > 1)
scev_initialize ();