https://gcc.gnu.org/g:8772f37e45e9401c9a361548e00c9691424e75e0
commit r15-5956-g8772f37e45e9401c9a361548e00c9691424e75e0 Author: Richard Biener <rguent...@suse.de> Date: Fri Dec 6 08:08:55 2024 +0100 rtl-optimization/117922 - add timevar for fold-mem-offsets 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. Diff: --- gcc/fold-mem-offsets.cc | 2 +- gcc/timevar.def | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/fold-mem-offsets.cc b/gcc/fold-mem-offsets.cc index 84b9623058bd..284aea9f06fa 100644 --- a/gcc/fold-mem-offsets.cc +++ b/gcc/fold-mem-offsets.cc @@ -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 */ diff --git a/gcc/timevar.def b/gcc/timevar.def index 574e62584ffc..4bd26e0b6b79 100644 --- a/gcc/timevar.def +++ b/gcc/timevar.def @@ -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")