]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rtl-optimization/117467 - 33% compile-time in rest of compilation
authorRichard Biener <rguenther@suse.de>
Thu, 7 Nov 2024 08:23:03 +0000 (09:23 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 7 Nov 2024 10:05:07 +0000 (11:05 +0100)
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.

gcc/ext-dce.cc
gcc/timevar.def

index a449b9f6b49ce2d1246b5cd419f39d510ed3b4ed..0ece37726c7eefac699985eb6248ddca85538862 100644 (file)
@@ -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 */
index 0f9d2c0b032478c2d2029c36f869cdab99ffc4aa..ae80a311a2d2e1fcca0a3b70755d325f9fdfb0ea 100644 (file)
@@ -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")