https://gcc.gnu.org/g:7a07de2c60b3c513b6aef206e9b55b3ffefe8b39
commit r15-5008-g7a07de2c60b3c513b6aef206e9b55b3ffefe8b39 Author: Richard Biener <rguent...@suse.de> Date: Thu Nov 7 09:23:03 2024 +0100 rtl-optimization/117467 - 33% compile-time in rest of compilation ext-dce uses TV_NONE, that's not OK for a pass taking 33% compile-time. The following adds a timevar to it for proper blaming. PR rtl-optimization/117467 * timevar.def (TV_EXT_DCE): New. * ext-dce.cc (pass_data_ext_dce): Use TV_EXT_DCE. Diff: --- gcc/ext-dce.cc | 2 +- gcc/timevar.def | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/ext-dce.cc b/gcc/ext-dce.cc index a449b9f6b49c..0ece37726c7e 100644 --- a/gcc/ext-dce.cc +++ b/gcc/ext-dce.cc @@ -1103,7 +1103,7 @@ const pass_data pass_data_ext_dce = RTL_PASS, /* type */ "ext_dce", /* name */ OPTGROUP_NONE, /* optinfo_flags */ - TV_NONE, /* tv_id */ + TV_EXT_DCE, /* tv_id */ PROP_cfglayout, /* properties_required */ 0, /* properties_provided */ 0, /* properties_destroyed */ diff --git a/gcc/timevar.def b/gcc/timevar.def index 0f9d2c0b0324..ae80a311a2d2 100644 --- a/gcc/timevar.def +++ b/gcc/timevar.def @@ -313,6 +313,7 @@ DEFTIMEVAR (TV_INITIALIZE_RTL , "initialize rtl") DEFTIMEVAR (TV_GIMPLE_LADDRESS , "address lowering") DEFTIMEVAR (TV_TREE_LOOP_IFCVT , "tree loop if-conversion") DEFTIMEVAR (TV_WARN_ACCESS , "access analysis") +DEFTIMEVAR (TV_EXT_DCE , "ext dce") /* Everything else in rest_of_compilation not included above. */ DEFTIMEVAR (TV_EARLY_LOCAL , "early local passes")