]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Assign separate timevar to duplicate computed goto pass
authorRichard Biener <rguenther@suse.de>
Mon, 9 Dec 2024 13:09:12 +0000 (14:09 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 9 Dec 2024 14:20:00 +0000 (15:20 +0100)
It currently shares the timevar with bb-reorder but can use significant
memory and compile-time on its own.

* timevar.def (TV_DUP_COMPGOTO): Add.
* bb-reorder.cc (pass_data_duplicate_computed_gotos): Use
TV_DUP_COMPGOTO.

gcc/bb-reorder.cc
gcc/timevar.def

index ee0aae105f316503c3f3430dac3a738bbcd736ff..d013e8386ab21c6a7324a992231f1e475382cc9c 100644 (file)
@@ -2799,7 +2799,7 @@ const pass_data pass_data_duplicate_computed_gotos =
   RTL_PASS, /* type */
   "compgotos", /* name */
   OPTGROUP_NONE, /* optinfo_flags */
-  TV_REORDER_BLOCKS, /* tv_id */
+  TV_DUP_COMPGOTO, /* tv_id */
   0, /* properties_required */
   0, /* properties_provided */
   0, /* properties_destroyed */
index 4bd26e0b6b791ed7cd9b0734fdaca95777782b51..945b4977d5c31a89c73951773693a4d0e03ce80c 100644 (file)
@@ -294,6 +294,7 @@ DEFTIMEVAR (TV_SCHED2                , "scheduling 2")
 DEFTIMEVAR (TV_MACH_DEP              , "machine dep reorg")
 DEFTIMEVAR (TV_DBR_SCHED             , "delay branch sched")
 DEFTIMEVAR (TV_REORDER_BLOCKS        , "reorder blocks")
+DEFTIMEVAR (TV_DUP_COMPGOTO          , "duplicate computed gotos")
 DEFTIMEVAR (TV_SHORTEN_BRANCH        , "shorten branches")
 DEFTIMEVAR (TV_REG_STACK             , "reg stack")
 DEFTIMEVAR (TV_FINAL                 , "final")