1 /* This file contains the definitions for timing variables used to
2 measure run
-time performance of the compiler.
3 Copyright (C
) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
5 Free Software Foundation
, Inc.
6 Contributed by Alex Samuel
<samuel@codesourcery.com
>
8 This file is part of GCC.
10 GCC is free software
; you can redistribute it and
/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation
; either version
3, or (at your option
)
15 GCC is distributed in the hope that it will be useful
,
16 but WITHOUT ANY WARRANTY
; without even the implied warranty of
17 MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with GCC
; see the file COPYING3. If not see
22 <http
://www.gnu.org
/licenses
/>.
*/
24 /* This file contains timing variable definitions
, used by timevar.h
31 where ID is the enumeral value used to identify the timing
32 variable
, and NAME is a character string describing its purpose.
*/
34 /* The total execution time.
*/
35 DEFTIMEVAR (TV_TOTAL
, "total time")
37 /* Time spent garbage
-collecting.
*/
38 DEFTIMEVAR (TV_GC
, "garbage collection")
40 /* Time spent generating dump files.
*/
41 DEFTIMEVAR (TV_DUMP
, "dump files")
43 /* Time spent saving
/restoring PCH state.
*/
44 DEFTIMEVAR (TV_PCH_SAVE
, "PCH main state save")
45 DEFTIMEVAR (TV_PCH_CPP_SAVE
, "PCH preprocessor state save")
46 DEFTIMEVAR (TV_PCH_PTR_REALLOC
, "PCH pointer reallocation")
47 DEFTIMEVAR (TV_PCH_PTR_SORT
, "PCH pointer sort")
48 DEFTIMEVAR (TV_PCH_RESTORE
, "PCH main state restore")
49 DEFTIMEVAR (TV_PCH_CPP_RESTORE
, "PCH preprocessor state restore")
51 DEFTIMEVAR (TV_CGRAPH
, "callgraph construction")
52 DEFTIMEVAR (TV_CGRAPHOPT
, "callgraph optimization")
53 DEFTIMEVAR (TV_VARPOOL
, "varpool construction")
54 DEFTIMEVAR (TV_IPA_CONSTANT_PROP
, "ipa cp")
55 DEFTIMEVAR (TV_IPA_FNSPLIT
, "ipa function splitting")
56 DEFTIMEVAR (TV_IPA_OPT
, "ipa various optimizations")
57 DEFTIMEVAR (TV_IPA_LTO_GIMPLE_IN
, "ipa lto gimple in")
58 DEFTIMEVAR (TV_IPA_LTO_GIMPLE_OUT
, "ipa lto gimple out")
59 DEFTIMEVAR (TV_IPA_LTO_DECL_IN
, "ipa lto decl in")
60 DEFTIMEVAR (TV_IPA_LTO_DECL_OUT
, "ipa lto decl out")
61 DEFTIMEVAR (TV_IPA_LTO_DECL_INIT_IO
, "ipa lto decl init I/O")
62 DEFTIMEVAR (TV_IPA_LTO_CGRAPH_IO
, "ipa lto cgraph I/O")
63 DEFTIMEVAR (TV_IPA_LTO_DECL_MERGE
, "ipa lto decl merge")
64 DEFTIMEVAR (TV_IPA_LTO_CGRAPH_MERGE
, "ipa lto cgraph merge")
65 DEFTIMEVAR (TV_LTO
, "lto")
66 DEFTIMEVAR (TV_WHOPR_WPA
, "whopr wpa")
67 DEFTIMEVAR (TV_WHOPR_WPA_IO
, "whopr wpa I/O")
68 DEFTIMEVAR (TV_WHOPR_LTRANS
, "whopr ltrans")
69 DEFTIMEVAR (TV_WHOPR_WPA_LTRANS_EXEC
, "whopr wpa->ltrans")
70 DEFTIMEVAR (TV_IPA_REFERENCE
, "ipa reference")
71 DEFTIMEVAR (TV_IPA_PROFILE
, "ipa profile")
72 DEFTIMEVAR (TV_IPA_PURE_CONST
, "ipa pure const")
73 DEFTIMEVAR (TV_IPA_TYPE_ESCAPE
, "ipa type escape")
74 DEFTIMEVAR (TV_IPA_PTA
, "ipa points-to")
75 DEFTIMEVAR (TV_IPA_SRA
, "ipa SRA")
76 DEFTIMEVAR (TV_IPA_FREE_LANG_DATA
, "ipa free lang data")
77 /* Time spent by constructing CFG.
*/
78 DEFTIMEVAR (TV_CFG
, "cfg construction")
79 /* Time spent by cleaning up CFG.
*/
80 DEFTIMEVAR (TV_CLEANUP_CFG
, "cfg cleanup")
81 DEFTIMEVAR (TV_CFG_VERIFY
, "CFG verifier")
82 DEFTIMEVAR (TV_DELETE_TRIVIALLY_DEAD
, "trivially dead code")
83 /* Time spent by life analysis.
*/
84 DEFTIMEVAR (TV_LIFE
, "life analysis")
85 DEFTIMEVAR (TV_LIFE_UPDATE
, "life info update")
87 /* Time spent in dataflow problems.
*/
88 DEFTIMEVAR (TV_DF_SCAN
, "df scan insns")
89 DEFTIMEVAR (TV_DF_MD
, "df multiple defs")
90 DEFTIMEVAR (TV_DF_RD
, "df reaching defs")
91 DEFTIMEVAR (TV_DF_LR
, "df live regs")
92 DEFTIMEVAR (TV_DF_LIVE
, "df live&initialized regs")
93 DEFTIMEVAR (TV_DF_UREC
, "df uninitialized regs 2")
94 DEFTIMEVAR (TV_DF_CHAIN
, "df use-def / def-use chains")
95 DEFTIMEVAR (TV_DF_WORD_LR
, "df live reg subwords")
96 DEFTIMEVAR (TV_DF_NOTE
, "df reg dead/unused notes")
97 DEFTIMEVAR (TV_REG_STATS
, "register information")
99 DEFTIMEVAR (TV_ALIAS_ANALYSIS
, "alias analysis")
100 DEFTIMEVAR (TV_ALIAS_STMT_WALK
, "alias stmt walking")
101 DEFTIMEVAR (TV_REG_SCAN
, "register scan")
102 DEFTIMEVAR (TV_REBUILD_JUMP
, "rebuild jump labels")
103 /* Timing in various stages of the compiler.
*/
104 DEFTIMEVAR (TV_CPP
, "preprocessing")
105 DEFTIMEVAR (TV_LEX
, "lexical analysis")
106 DEFTIMEVAR (TV_PARSE
, "parser")
107 DEFTIMEVAR (TV_NAME_LOOKUP
, "name lookup")
108 DEFTIMEVAR (TV_INLINE_HEURISTICS
, "inline heuristics")
109 DEFTIMEVAR (TV_INTEGRATION
, "integration")
110 DEFTIMEVAR (TV_TREE_GIMPLIFY
, "tree gimplify")
111 DEFTIMEVAR (TV_TREE_EH
, "tree eh")
112 DEFTIMEVAR (TV_TREE_CFG
, "tree CFG construction")
113 DEFTIMEVAR (TV_TREE_CLEANUP_CFG
, "tree CFG cleanup")
114 DEFTIMEVAR (TV_TREE_VRP
, "tree VRP")
115 DEFTIMEVAR (TV_TREE_COPY_PROP
, "tree copy propagation")
116 DEFTIMEVAR (TV_FIND_REFERENCED_VARS
, "tree find ref. vars")
117 DEFTIMEVAR (TV_TREE_PTA
, "tree PTA")
118 DEFTIMEVAR (TV_TREE_INSERT_PHI_NODES
, "tree PHI insertion")
119 DEFTIMEVAR (TV_TREE_SSA_REWRITE_BLOCKS
, "tree SSA rewrite")
120 DEFTIMEVAR (TV_TREE_SSA_OTHER
, "tree SSA other")
121 DEFTIMEVAR (TV_TREE_SSA_INCREMENTAL
, "tree SSA incremental")
122 DEFTIMEVAR (TV_TREE_OPS
, "tree operand scan")
123 DEFTIMEVAR (TV_TREE_SSA_DOMINATOR_OPTS
, "dominator optimization")
124 DEFTIMEVAR (TV_TREE_SRA
, "tree SRA")
125 DEFTIMEVAR (TV_TREE_CCP
, "tree CCP")
126 DEFTIMEVAR (TV_TREE_PHI_CPROP
, "tree PHI const/copy prop")
127 DEFTIMEVAR (TV_TREE_SPLIT_EDGES
, "tree split crit edges")
128 DEFTIMEVAR (TV_TREE_REASSOC
, "tree reassociation")
129 DEFTIMEVAR (TV_TREE_PRE
, "tree PRE")
130 DEFTIMEVAR (TV_TREE_FRE
, "tree FRE")
131 DEFTIMEVAR (TV_TREE_SINK
, "tree code sinking")
132 DEFTIMEVAR (TV_TREE_PHIOPT
, "tree linearize phis")
133 DEFTIMEVAR (TV_TREE_FORWPROP
, "tree forward propagate")
134 DEFTIMEVAR (TV_TREE_PHIPROP
, "tree phiprop")
135 DEFTIMEVAR (TV_TREE_DCE
, "tree conservative DCE")
136 DEFTIMEVAR (TV_TREE_CD_DCE
, "tree aggressive DCE")
137 DEFTIMEVAR (TV_TREE_CALL_CDCE
, "tree buildin call DCE")
138 DEFTIMEVAR (TV_TREE_DSE
, "tree DSE")
139 DEFTIMEVAR (TV_TREE_MERGE_PHI
, "PHI merge")
140 DEFTIMEVAR (TV_TREE_LOOP
, "tree loop optimization")
141 DEFTIMEVAR (TV_TREE_LOOP_BOUNDS
, "tree loop bounds")
142 DEFTIMEVAR (TV_LIM
, "tree loop invariant motion")
143 DEFTIMEVAR (TV_TREE_LOOP_IVCANON
, "tree canonical iv")
144 DEFTIMEVAR (TV_SCEV_CONST
, "scev constant prop")
145 DEFTIMEVAR (TV_TREE_LOOP_UNSWITCH
, "tree loop unswitching")
146 DEFTIMEVAR (TV_COMPLETE_UNROLL
, "complete unrolling")
147 DEFTIMEVAR (TV_TREE_PARALLELIZE_LOOPS
, "tree parallelize loops")
148 DEFTIMEVAR (TV_TREE_VECTORIZATION
, "tree vectorization")
149 DEFTIMEVAR (TV_TREE_SLP_VECTORIZATION
, "tree slp vectorization")
150 DEFTIMEVAR (TV_GRAPHITE
, "Graphite")
151 DEFTIMEVAR (TV_GRAPHITE_TRANSFORMS
, "Graphite loop transforms")
152 DEFTIMEVAR (TV_GRAPHITE_DATA_DEPS
, "Graphite data dep analysis")
153 DEFTIMEVAR (TV_GRAPHITE_CODE_GEN
, "Graphite code generation")
154 DEFTIMEVAR (TV_TREE_LINEAR_TRANSFORM
, "tree loop linear")
155 DEFTIMEVAR (TV_TREE_LOOP_DISTRIBUTION
, "tree loop distribution")
156 DEFTIMEVAR (TV_CHECK_DATA_DEPS
, "tree check data dependences")
157 DEFTIMEVAR (TV_TREE_PREFETCH
, "tree prefetching")
158 DEFTIMEVAR (TV_TREE_LOOP_IVOPTS
, "tree iv optimization")
159 DEFTIMEVAR (TV_PREDCOM
, "predictive commoning")
160 DEFTIMEVAR (TV_TREE_LOOP_INIT
, "tree loop init")
161 DEFTIMEVAR (TV_TREE_LOOP_FINI
, "tree loop fini")
162 DEFTIMEVAR (TV_TREE_CH
, "tree copy headers")
163 DEFTIMEVAR (TV_TREE_SSA_UNCPROP
, "tree SSA uncprop")
164 DEFTIMEVAR (TV_TREE_SSA_TO_NORMAL
, "tree SSA to normal")
165 DEFTIMEVAR (TV_TREE_NRV
, "tree NRV optimization")
166 DEFTIMEVAR (TV_TREE_COPY_RENAME
, "tree rename SSA copies")
167 DEFTIMEVAR (TV_TREE_SSA_VERIFY
, "tree SSA verifier")
168 DEFTIMEVAR (TV_TREE_STMT_VERIFY
, "tree STMT verifier")
169 DEFTIMEVAR (TV_TREE_SWITCH_CONVERSION
, "tree switch initialization conversion")
170 DEFTIMEVAR (TV_CGRAPH_VERIFY
, "callgraph verifier")
171 DEFTIMEVAR (TV_DOM_FRONTIERS
, "dominance frontiers")
172 DEFTIMEVAR (TV_DOMINANCE
, "dominance computation")
173 DEFTIMEVAR (TV_CONTROL_DEPENDENCES
, "control dependences")
174 DEFTIMEVAR (TV_OVERLOAD
, "overload resolution")
175 DEFTIMEVAR (TV_TEMPLATE_INSTANTIATION
, "template instantiation")
176 DEFTIMEVAR (TV_OUT_OF_SSA
, "out of ssa")
177 DEFTIMEVAR (TV_VAR_EXPAND
, "expand vars")
178 DEFTIMEVAR (TV_EXPAND
, "expand")
179 DEFTIMEVAR (TV_POST_EXPAND
, "post expand cleanups")
180 DEFTIMEVAR (TV_VARCONST
, "varconst")
181 DEFTIMEVAR (TV_LOWER_SUBREG
, "lower subreg")
182 DEFTIMEVAR (TV_JUMP
, "jump")
183 DEFTIMEVAR (TV_FWPROP
, "forward prop")
184 DEFTIMEVAR (TV_CSE
, "CSE")
185 DEFTIMEVAR (TV_DCE
, "dead code elimination")
186 DEFTIMEVAR (TV_DSE1
, "dead store elim1")
187 DEFTIMEVAR (TV_DSE2
, "dead store elim2")
188 DEFTIMEVAR (TV_LOOP
, "loop analysis")
189 DEFTIMEVAR (TV_LOOP_MOVE_INVARIANTS
, "loop invariant motion")
190 DEFTIMEVAR (TV_LOOP_UNSWITCH
, "loop unswitching")
191 DEFTIMEVAR (TV_LOOP_UNROLL
, "loop unrolling")
192 DEFTIMEVAR (TV_LOOP_DOLOOP
, "loop doloop")
193 DEFTIMEVAR (TV_CPROP
, "CPROP")
194 DEFTIMEVAR (TV_PRE
, "PRE")
195 DEFTIMEVAR (TV_HOIST
, "code hoisting")
196 DEFTIMEVAR (TV_LSM
, "LSM")
197 DEFTIMEVAR (TV_TRACER
, "tracer")
198 DEFTIMEVAR (TV_WEB
, "web")
199 DEFTIMEVAR (TV_AUTO_INC_DEC
, "auto inc dec")
200 DEFTIMEVAR (TV_CSE2
, "CSE 2")
201 DEFTIMEVAR (TV_BRANCH_PROB
, "branch prediction")
202 DEFTIMEVAR (TV_VPT
, "value profile opts")
203 DEFTIMEVAR (TV_COMBINE
, "combiner")
204 DEFTIMEVAR (TV_IFCVT
, "if-conversion")
205 DEFTIMEVAR (TV_REGMOVE
, "regmove")
206 DEFTIMEVAR (TV_MODE_SWITCH
, "mode switching")
207 DEFTIMEVAR (TV_SMS
, "sms modulo scheduling")
208 DEFTIMEVAR (TV_SCHED
, "scheduling")
209 DEFTIMEVAR (TV_LOCAL_ALLOC
, "local alloc")
210 DEFTIMEVAR (TV_GLOBAL_ALLOC
, "global alloc")
211 DEFTIMEVAR (TV_IRA
, "integrated RA")
212 DEFTIMEVAR (TV_RELOAD
, "reload")
213 DEFTIMEVAR (TV_RELOAD_CSE_REGS
, "reload CSE regs")
214 DEFTIMEVAR (TV_SEQABSTR
, "sequence abstraction")
215 DEFTIMEVAR (TV_GCSE_AFTER_RELOAD
, "load CSE after reload")
216 DEFTIMEVAR (TV_ZEE
, "zee")
217 DEFTIMEVAR (TV_THREAD_PROLOGUE_AND_EPILOGUE
, "thread pro- & epilogue")
218 DEFTIMEVAR (TV_IFCVT2
, "if-conversion 2")
219 DEFTIMEVAR (TV_COMBINE_STACK_ADJUST
, "combine stack adjustments")
220 DEFTIMEVAR (TV_PEEPHOLE2
, "peephole 2")
221 DEFTIMEVAR (TV_RENAME_REGISTERS
, "rename registers")
222 DEFTIMEVAR (TV_CPROP_REGISTERS
, "hard reg cprop")
223 DEFTIMEVAR (TV_SCHED2
, "scheduling 2")
224 DEFTIMEVAR (TV_MACH_DEP
, "machine dep reorg")
225 DEFTIMEVAR (TV_DBR_SCHED
, "delay branch sched")
226 DEFTIMEVAR (TV_REORDER_BLOCKS
, "reorder blocks")
227 DEFTIMEVAR (TV_SHORTEN_BRANCH
, "shorten branches")
228 DEFTIMEVAR (TV_REG_STACK
, "reg stack")
229 DEFTIMEVAR (TV_FINAL
, "final")
230 DEFTIMEVAR (TV_VAROUT
, "variable output")
231 DEFTIMEVAR (TV_SYMOUT
, "symout")
232 DEFTIMEVAR (TV_VAR_TRACKING
, "variable tracking")
233 DEFTIMEVAR (TV_VAR_TRACKING_DATAFLOW
, "var-tracking dataflow")
234 DEFTIMEVAR (TV_VAR_TRACKING_EMIT
, "var-tracking emit")
235 DEFTIMEVAR (TV_TREE_IFCOMBINE
, "tree if-combine")
236 DEFTIMEVAR (TV_TREE_UNINIT
, "uninit var analysis")
237 DEFTIMEVAR (TV_PLUGIN_INIT
, "plugin initialization")
238 DEFTIMEVAR (TV_PLUGIN_RUN
, "plugin execution")
240 /* Everything else in rest_of_compilation not included above.
*/
241 DEFTIMEVAR (TV_EARLY_LOCAL
, "early local passes")
242 DEFTIMEVAR (TV_OPTIMIZE
, "unaccounted optimizations")
243 DEFTIMEVAR (TV_REST_OF_COMPILATION
, "rest of compilation")
244 DEFTIMEVAR (TV_POSTRELOAD
, "unaccounted post reload")
245 DEFTIMEVAR (TV_REMOVE_UNUSED
, "remove unused locals")
246 DEFTIMEVAR (TV_ADDRESS_TAKEN
, "address taken")
247 DEFTIMEVAR (TV_TODO
, "unaccounted todo")
248 DEFTIMEVAR (TV_VERIFY_LOOP_CLOSED
, "verify loop closed")
249 DEFTIMEVAR (TV_VERIFY_RTL_SHARING
, "verify RTL sharing")
250 DEFTIMEVAR (TV_REBUILD_FREQUENCIES
, "rebuild frequencies")
251 DEFTIMEVAR (TV_REPAIR_LOOPS
, "repair loop structures")