aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-12-06 08:08:55 +0100
committerRichard Biener <rguenth@gcc.gnu.org>2024-12-06 08:14:59 +0100
commit8772f37e45e9401c9a361548e00c9691424e75e0 (patch)
tree71215293a6c84b702db53609256a8e6ceb9baba6 /gcc
parentafeef7f0d3537cd978931a5afcbd3d91c144bfeb (diff)
downloadgcc-8772f37e45e9401c9a361548e00c9691424e75e0.zip
gcc-8772f37e45e9401c9a361548e00c9691424e75e0.tar.gz
gcc-8772f37e45e9401c9a361548e00c9691424e75e0.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fold-mem-offsets.cc2
-rw-r--r--gcc/timevar.def1
2 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fold-mem-offsets.cc b/gcc/fold-mem-offsets.cc
index 84b9623..284aea9 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 574e625..4bd26e0 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")