It currently shares the timevar with bb-reorder but can use significant
memory and compile-time on its own.
Bootstrap and regtest running on x86_64-unknown-linux-gnu, will push.
* timevar.def (TV_DUP_COMPGOTO): Add.
* bb-reorder.cc (pass_data_duplicate_computed_gotos): Use
TV_DUP_COMPGOTO.
---
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 ee0aae105f3..d013e8386ab 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 4bd26e0b6b7..945b4977d5c 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")
--
2.43.0