https://gcc.gnu.org/g:75e481c711c0f6698ca063f5a009db71d45ddc0c

commit r15-6044-g75e481c711c0f6698ca063f5a009db71d45ddc0c
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Dec 9 14:09:12 2024 +0100

    Assign separate timevar to duplicate computed goto pass
    
    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.

Diff:
---
 gcc/bb-reorder.cc | 2 +-
 gcc/timevar.def   | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/bb-reorder.cc b/gcc/bb-reorder.cc
index ee0aae105f31..d013e8386ab2 100644
--- a/gcc/bb-reorder.cc
+++ b/gcc/bb-reorder.cc
@@ -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 */
diff --git a/gcc/timevar.def b/gcc/timevar.def
index 4bd26e0b6b79..945b4977d5c3 100644
--- a/gcc/timevar.def
+++ b/gcc/timevar.def
@@ -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")

Reply via email to