]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rtl-optimization/117922 - add timevar for fold-mem-offsets
authorRichard Biener <rguenther@suse.de>
Fri, 6 Dec 2024 07:08:55 +0000 (08:08 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 6 Dec 2024 07:14:59 +0000 (08:14 +0100)
The new fold-mem-offsets RTL pass takes significant amount of time
and memory.  Add a timevar for it.

PR rtl-optimization/117922
* timevar.def (TV_FOLD_MEM_OFFSETS): New.
* fold-mem-offsets.cc (pass_data_fold_mem): Use TV_FOLD_MEM_OFFSETS.

gcc/fold-mem-offsets.cc
gcc/timevar.def

index 84b9623058bd4cdb5c8f77d78d5d7c71571472d8..284aea9f06fadf404cd06f598dcf112475e68d82 100644 (file)
@@ -100,7 +100,7 @@ const pass_data pass_data_fold_mem =
   RTL_PASS, /* type */
   "fold_mem_offsets", /* name */
   OPTGROUP_NONE, /* optinfo_flags */
-  TV_NONE, /* tv_id */
+  TV_FOLD_MEM_OFFSETS, /* tv_id */
   0, /* properties_required */
   0, /* properties_provided */
   0, /* properties_destroyed */
index 574e62584ffc6df71b54c74033a902fbbb122579..4bd26e0b6b791ed7cd9b0734fdaca95777782b51 100644 (file)
@@ -317,6 +317,7 @@ DEFTIMEVAR (TV_TREE_LOOP_IFCVT       , "tree loop if-conversion")
 DEFTIMEVAR (TV_WARN_ACCESS           , "access analysis")
 DEFTIMEVAR (TV_GIMPLE_CRC_OPTIMIZATION, "crc optimization")
 DEFTIMEVAR (TV_EXT_DCE               , "ext dce")
+DEFTIMEVAR (TV_FOLD_MEM_OFFSETS      , "fold mem offsets")
 
 /* Everything else in rest_of_compilation not included above.  */
 DEFTIMEVAR (TV_EARLY_LOCAL          , "early local passes")