1 |
38 |
julius |
/* 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, 2007
|
4 |
|
|
Free Software Foundation, Inc.
|
5 |
|
|
Contributed by Alex Samuel
|
6 |
|
|
|
7 |
|
|
This file is part of GCC.
|
8 |
|
|
|
9 |
|
|
GCC is free software; you can redistribute it and/or modify
|
10 |
|
|
it under the terms of the GNU General Public License as published by
|
11 |
|
|
the Free Software Foundation; either version 3, or (at your option)
|
12 |
|
|
any later version.
|
13 |
|
|
|
14 |
|
|
GCC is distributed in the hope that it will be useful,
|
15 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17 |
|
|
GNU General Public License for more details.
|
18 |
|
|
|
19 |
|
|
You should have received a copy of the GNU General Public License
|
20 |
|
|
along with GCC; see the file COPYING3. If not see
|
21 |
|
|
. */
|
22 |
|
|
|
23 |
|
|
/* This file contains timing variable definitions, used by timevar.h
|
24 |
|
|
and timevar.c.
|
25 |
|
|
|
26 |
|
|
Syntax:
|
27 |
|
|
|
28 |
|
|
DEFTIMEVAR (id, name)
|
29 |
|
|
|
30 |
|
|
where ID is the enumeral value used to identify the timing
|
31 |
|
|
variable, and NAME is a character string describing its purpose. */
|
32 |
|
|
|
33 |
|
|
/* The total execution time. */
|
34 |
|
|
DEFTIMEVAR (TV_TOTAL , "total time")
|
35 |
|
|
|
36 |
|
|
/* Time spent garbage-collecting. */
|
37 |
|
|
DEFTIMEVAR (TV_GC , "garbage collection")
|
38 |
|
|
|
39 |
|
|
/* Time spent generating dump files. */
|
40 |
|
|
DEFTIMEVAR (TV_DUMP , "dump files")
|
41 |
|
|
|
42 |
|
|
DEFTIMEVAR (TV_CGRAPH , "callgraph construction")
|
43 |
|
|
DEFTIMEVAR (TV_CGRAPHOPT , "callgraph optimization")
|
44 |
|
|
DEFTIMEVAR (TV_IPA_CONSTANT_PROP , "ipa cp")
|
45 |
|
|
DEFTIMEVAR (TV_IPA_REFERENCE , "ipa reference")
|
46 |
|
|
DEFTIMEVAR (TV_IPA_PURE_CONST , "ipa pure const")
|
47 |
|
|
DEFTIMEVAR (TV_IPA_TYPE_ESCAPE , "ipa type escape")
|
48 |
|
|
DEFTIMEVAR (TV_IPA_PTA , "ipa points-to")
|
49 |
|
|
/* Time spent by constructing CFG. */
|
50 |
|
|
DEFTIMEVAR (TV_CFG , "cfg construction")
|
51 |
|
|
/* Time spent by cleaning up CFG. */
|
52 |
|
|
DEFTIMEVAR (TV_CLEANUP_CFG , "cfg cleanup")
|
53 |
|
|
DEFTIMEVAR (TV_CFG_VERIFY , "CFG verifier")
|
54 |
|
|
DEFTIMEVAR (TV_DELETE_TRIVIALLY_DEAD , "trivially dead code")
|
55 |
|
|
/* Time spent by life analysis. */
|
56 |
|
|
DEFTIMEVAR (TV_LIFE , "life analysis")
|
57 |
|
|
DEFTIMEVAR (TV_LIFE_UPDATE , "life info update")
|
58 |
|
|
|
59 |
|
|
DEFTIMEVAR (TV_ALIAS_ANALYSIS , "alias analysis")
|
60 |
|
|
DEFTIMEVAR (TV_REG_SCAN , "register scan")
|
61 |
|
|
DEFTIMEVAR (TV_REBUILD_JUMP , "rebuild jump labels")
|
62 |
|
|
/* Timing in various stages of the compiler. */
|
63 |
|
|
DEFTIMEVAR (TV_CPP , "preprocessing")
|
64 |
|
|
DEFTIMEVAR (TV_LEX , "lexical analysis")
|
65 |
|
|
DEFTIMEVAR (TV_PARSE , "parser")
|
66 |
|
|
DEFTIMEVAR (TV_NAME_LOOKUP , "name lookup")
|
67 |
|
|
DEFTIMEVAR (TV_INLINE_HEURISTICS , "inline heuristics")
|
68 |
|
|
DEFTIMEVAR (TV_INTEGRATION , "integration")
|
69 |
|
|
DEFTIMEVAR (TV_TREE_GIMPLIFY , "tree gimplify")
|
70 |
|
|
DEFTIMEVAR (TV_TREE_EH , "tree eh")
|
71 |
|
|
DEFTIMEVAR (TV_TREE_CFG , "tree CFG construction")
|
72 |
|
|
DEFTIMEVAR (TV_TREE_CLEANUP_CFG , "tree CFG cleanup")
|
73 |
|
|
DEFTIMEVAR (TV_TREE_VRP , "tree VRP")
|
74 |
|
|
DEFTIMEVAR (TV_TREE_COPY_PROP , "tree copy propagation")
|
75 |
|
|
DEFTIMEVAR (TV_TREE_STORE_COPY_PROP , "tree store copy prop")
|
76 |
|
|
DEFTIMEVAR (TV_FIND_REFERENCED_VARS , "tree find ref. vars")
|
77 |
|
|
DEFTIMEVAR (TV_TREE_PTA , "tree PTA")
|
78 |
|
|
DEFTIMEVAR (TV_TREE_MAY_ALIAS , "tree alias analysis")
|
79 |
|
|
DEFTIMEVAR (TV_TREE_INSERT_PHI_NODES , "tree PHI insertion")
|
80 |
|
|
DEFTIMEVAR (TV_TREE_SSA_REWRITE_BLOCKS, "tree SSA rewrite")
|
81 |
|
|
DEFTIMEVAR (TV_TREE_SSA_OTHER , "tree SSA other")
|
82 |
|
|
DEFTIMEVAR (TV_TREE_SSA_INCREMENTAL , "tree SSA incremental")
|
83 |
|
|
DEFTIMEVAR (TV_TREE_OPS , "tree operand scan")
|
84 |
|
|
DEFTIMEVAR (TV_TREE_SSA_DOMINATOR_OPTS , "dominator optimization")
|
85 |
|
|
DEFTIMEVAR (TV_TREE_SRA , "tree SRA")
|
86 |
|
|
DEFTIMEVAR (TV_TREE_STORE_CCP , "tree STORE-CCP")
|
87 |
|
|
DEFTIMEVAR (TV_TREE_CCP , "tree CCP")
|
88 |
|
|
DEFTIMEVAR (TV_TREE_PHI_CPROP , "tree PHI const/copy prop")
|
89 |
|
|
DEFTIMEVAR (TV_TREE_SPLIT_EDGES , "tree split crit edges")
|
90 |
|
|
DEFTIMEVAR (TV_TREE_REASSOC , "tree reassociation")
|
91 |
|
|
DEFTIMEVAR (TV_TREE_PRE , "tree PRE")
|
92 |
|
|
DEFTIMEVAR (TV_TREE_REDPHI , "tree redundant PHIs")
|
93 |
|
|
DEFTIMEVAR (TV_TREE_FRE , "tree FRE")
|
94 |
|
|
DEFTIMEVAR (TV_TREE_SINK , "tree code sinking")
|
95 |
|
|
DEFTIMEVAR (TV_TREE_PHIOPT , "tree linearize phis")
|
96 |
|
|
DEFTIMEVAR (TV_TREE_FORWPROP , "tree forward propagate")
|
97 |
|
|
DEFTIMEVAR (TV_TREE_DCE , "tree conservative DCE")
|
98 |
|
|
DEFTIMEVAR (TV_TREE_CD_DCE , "tree aggressive DCE")
|
99 |
|
|
DEFTIMEVAR (TV_TREE_DSE , "tree DSE")
|
100 |
|
|
DEFTIMEVAR (TV_TREE_MERGE_PHI , "PHI merge")
|
101 |
|
|
DEFTIMEVAR (TV_TREE_LOOP , "tree loop optimization")
|
102 |
|
|
DEFTIMEVAR (TV_TREE_LOOP_BOUNDS , "tree loop bounds")
|
103 |
|
|
DEFTIMEVAR (TV_LIM , "loop invariant motion")
|
104 |
|
|
DEFTIMEVAR (TV_TREE_LOOP_IVCANON , "tree canonical iv")
|
105 |
|
|
DEFTIMEVAR (TV_SCEV_CONST , "scev constant prop")
|
106 |
|
|
DEFTIMEVAR (TV_TREE_LOOP_UNSWITCH , "tree loop unswitching")
|
107 |
|
|
DEFTIMEVAR (TV_COMPLETE_UNROLL , "complete unrolling")
|
108 |
|
|
DEFTIMEVAR (TV_TREE_VECTORIZATION , "tree vectorization")
|
109 |
|
|
DEFTIMEVAR (TV_TREE_LINEAR_TRANSFORM , "tree loop linear")
|
110 |
|
|
DEFTIMEVAR (TV_TREE_PREFETCH , "tree prefetching")
|
111 |
|
|
DEFTIMEVAR (TV_TREE_LOOP_IVOPTS , "tree iv optimization")
|
112 |
|
|
DEFTIMEVAR (TV_TREE_LOOP_INIT , "tree loop init")
|
113 |
|
|
DEFTIMEVAR (TV_TREE_LOOP_FINI , "tree loop fini")
|
114 |
|
|
DEFTIMEVAR (TV_TREE_CH , "tree copy headers")
|
115 |
|
|
DEFTIMEVAR (TV_TREE_SSA_UNCPROP , "tree SSA uncprop")
|
116 |
|
|
DEFTIMEVAR (TV_TREE_SSA_TO_NORMAL , "tree SSA to normal")
|
117 |
|
|
DEFTIMEVAR (TV_TREE_NRV , "tree NRV optimization")
|
118 |
|
|
DEFTIMEVAR (TV_TREE_COPY_RENAME , "tree rename SSA copies")
|
119 |
|
|
DEFTIMEVAR (TV_TREE_SSA_VERIFY , "tree SSA verifier")
|
120 |
|
|
DEFTIMEVAR (TV_TREE_STMT_VERIFY , "tree STMT verifier")
|
121 |
|
|
DEFTIMEVAR (TV_CGRAPH_VERIFY , "callgraph verifier")
|
122 |
|
|
DEFTIMEVAR (TV_DOM_FRONTIERS , "dominance frontiers")
|
123 |
|
|
DEFTIMEVAR (TV_DOMINANCE , "dominance computation")
|
124 |
|
|
DEFTIMEVAR (TV_CONTROL_DEPENDENCES , "control dependences")
|
125 |
|
|
DEFTIMEVAR (TV_OVERLOAD , "overload resolution")
|
126 |
|
|
DEFTIMEVAR (TV_TEMPLATE_INSTANTIATION, "template instantiation")
|
127 |
|
|
DEFTIMEVAR (TV_EXPAND , "expand")
|
128 |
|
|
DEFTIMEVAR (TV_VARCONST , "varconst")
|
129 |
|
|
DEFTIMEVAR (TV_JUMP , "jump")
|
130 |
|
|
DEFTIMEVAR (TV_CSE , "CSE")
|
131 |
|
|
DEFTIMEVAR (TV_LOOP , "loop analysis")
|
132 |
|
|
DEFTIMEVAR (TV_GCSE , "global CSE")
|
133 |
|
|
DEFTIMEVAR (TV_CPROP1 , "CPROP 1")
|
134 |
|
|
DEFTIMEVAR (TV_PRE , "PRE")
|
135 |
|
|
DEFTIMEVAR (TV_HOIST , "code hoisting")
|
136 |
|
|
DEFTIMEVAR (TV_CPROP2 , "CPROP 2")
|
137 |
|
|
DEFTIMEVAR (TV_LSM , "LSM")
|
138 |
|
|
DEFTIMEVAR (TV_BYPASS , "bypass jumps")
|
139 |
|
|
DEFTIMEVAR (TV_TRACER , "tracer")
|
140 |
|
|
DEFTIMEVAR (TV_WEB , "web")
|
141 |
|
|
DEFTIMEVAR (TV_CSE2 , "CSE 2")
|
142 |
|
|
DEFTIMEVAR (TV_BRANCH_PROB , "branch prediction")
|
143 |
|
|
DEFTIMEVAR (TV_VPT , "value profile opts")
|
144 |
|
|
DEFTIMEVAR (TV_FLOW , "flow analysis")
|
145 |
|
|
DEFTIMEVAR (TV_COMBINE , "combiner")
|
146 |
|
|
DEFTIMEVAR (TV_IFCVT , "if-conversion")
|
147 |
|
|
DEFTIMEVAR (TV_SEE , "see")
|
148 |
|
|
DEFTIMEVAR (TV_REGMOVE , "regmove")
|
149 |
|
|
DEFTIMEVAR (TV_MODE_SWITCH , "mode switching")
|
150 |
|
|
DEFTIMEVAR (TV_SMS , "sms modulo scheduling")
|
151 |
|
|
DEFTIMEVAR (TV_SCHED , "scheduling")
|
152 |
|
|
DEFTIMEVAR (TV_LOCAL_ALLOC , "local alloc")
|
153 |
|
|
DEFTIMEVAR (TV_GLOBAL_ALLOC , "global alloc")
|
154 |
|
|
DEFTIMEVAR (TV_RELOAD_CSE_REGS , "reload CSE regs")
|
155 |
|
|
DEFTIMEVAR (TV_SEQABSTR , "sequence abstraction")
|
156 |
|
|
DEFTIMEVAR (TV_GCSE_AFTER_RELOAD , "load CSE after reload")
|
157 |
|
|
DEFTIMEVAR (TV_FLOW2 , "flow 2")
|
158 |
|
|
DEFTIMEVAR (TV_IFCVT2 , "if-conversion 2")
|
159 |
|
|
DEFTIMEVAR (TV_PEEPHOLE2 , "peephole 2")
|
160 |
|
|
DEFTIMEVAR (TV_RENAME_REGISTERS , "rename registers")
|
161 |
|
|
DEFTIMEVAR (TV_SCHED2 , "scheduling 2")
|
162 |
|
|
DEFTIMEVAR (TV_MACH_DEP , "machine dep reorg")
|
163 |
|
|
DEFTIMEVAR (TV_DBR_SCHED , "delay branch sched")
|
164 |
|
|
DEFTIMEVAR (TV_REORDER_BLOCKS , "reorder blocks")
|
165 |
|
|
DEFTIMEVAR (TV_SHORTEN_BRANCH , "shorten branches")
|
166 |
|
|
DEFTIMEVAR (TV_REG_STACK , "reg stack")
|
167 |
|
|
DEFTIMEVAR (TV_FINAL , "final")
|
168 |
|
|
DEFTIMEVAR (TV_SYMOUT , "symout")
|
169 |
|
|
DEFTIMEVAR (TV_VAR_TRACKING , "variable tracking")
|
170 |
|
|
|
171 |
|
|
/* Everything else in rest_of_compilation not included above. */
|
172 |
|
|
DEFTIMEVAR (TV_REST_OF_COMPILATION , "rest of compilation")
|