From: Richard Biener Date: Fri, 6 Dec 2024 07:08:55 +0000 (+0100) Subject: rtl-optimization/117922 - add timevar for fold-mem-offsets X-Git-Tag: basepoints/gcc-16~3597 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8772f37e45e9401c9a361548e00c9691424e75e0;p=thirdparty%2Fgcc.git 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 --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")