OSDN Git Service

2011-01-14 Tobias Burnus <burnus@net-b.de>
[pf3gnuchains/gcc-fork.git] / gcc / params.def
1 /* params.def - Run-time parameters.
2    Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
3    2011
4    Free Software Foundation, Inc.
5    Written by Mark Mitchell <mark@codesourcery.com>.
6
7 This file is part of GCC.
8
9 GCC is free software; you can redistribute it and/or modify it under
10 the terms of the GNU General Public License as published by the Free
11 Software Foundation; either version 3, or (at your option) any later
12 version.
13
14 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
17 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 <http://www.gnu.org/licenses/>.  */
22
23 /* This file contains definitions for language-independent
24    parameters.  The DEFPARAM macro takes 6 arguments:
25
26      - The enumeral corresponding to this parameter.
27
28      - The name that can be used to set this parameter using the
29        command-line option `--param <name>=<value>'.
30
31      - A help string explaining how the parameter is used.
32
33      - A default value for the parameter.
34
35      - The minimum acceptable value for the parameter.
36
37      - The maximum acceptable value for the parameter (if greater than
38      the minimum).
39
40    Be sure to add an entry to invoke.texi summarizing the parameter.  */
41
42 /* The threshold ratio between current and hottest structure counts.
43    We say that if the ratio of the current structure count,
44    calculated by profiling, to the hottest structure count
45    in the program is less than this parameter, then structure
46    reorganization is not applied. The default is 10%.  */
47 DEFPARAM (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO,
48           "struct-reorg-cold-struct-ratio",
49           "The threshold ratio between current and hottest structure counts",
50           10, 0, 100)
51
52 /* When branch is predicted to be taken with probability lower than this
53    threshold (in percent), then it is considered well predictable. */
54 DEFPARAM (PARAM_PREDICTABLE_BRANCH_OUTCOME,
55           "predictable-branch-outcome",
56           "Maximal estimated outcome of branch considered predictable",
57           2, 0, 50)
58
59 /* The single function inlining limit. This is the maximum size
60    of a function counted in internal gcc instructions (not in
61    real machine instructions) that is eligible for inlining
62    by the tree inliner.
63    The default value is 450.
64    Only functions marked inline (or methods defined in the class
65    definition for C++) are affected by this.
66    There are more restrictions to inlining: If inlined functions
67    call other functions, the already inlined instructions are
68    counted and once the recursive inline limit (see
69    "max-inline-insns" parameter) is exceeded, the acceptable size
70    gets decreased.  */
71 DEFPARAM (PARAM_MAX_INLINE_INSNS_SINGLE,
72           "max-inline-insns-single",
73           "The maximum number of instructions in a single function eligible for inlining",
74           400, 0, 0)
75
76 /* The single function inlining limit for functions that are
77    inlined by virtue of -finline-functions (-O3).
78    This limit should be chosen to be below or equal to the limit
79    that is applied to functions marked inlined (or defined in the
80    class declaration in C++) given by the "max-inline-insns-single"
81    parameter.
82    The default value is 40.  */
83 DEFPARAM (PARAM_MAX_INLINE_INSNS_AUTO,
84           "max-inline-insns-auto",
85           "The maximum number of instructions when automatically inlining",
86           40, 0, 0)
87
88 DEFPARAM (PARAM_MAX_INLINE_INSNS_RECURSIVE,
89           "max-inline-insns-recursive",
90           "The maximum number of instructions inline function can grow to via recursive inlining",
91           450, 0, 0)
92
93 DEFPARAM (PARAM_MAX_INLINE_INSNS_RECURSIVE_AUTO,
94           "max-inline-insns-recursive-auto",
95           "The maximum number of instructions non-inline function can grow to via recursive inlining",
96           450, 0, 0)
97
98 DEFPARAM (PARAM_MAX_INLINE_RECURSIVE_DEPTH,
99           "max-inline-recursive-depth",
100           "The maximum depth of recursive inlining for inline functions",
101           8, 0, 0)
102
103 DEFPARAM (PARAM_MAX_INLINE_RECURSIVE_DEPTH_AUTO,
104           "max-inline-recursive-depth-auto",
105           "The maximum depth of recursive inlining for non-inline functions",
106           8, 0, 0)
107
108 DEFPARAM (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY,
109           "min-inline-recursive-probability",
110           "Inline recursively only when the probability of call being executed exceeds the parameter",
111           10, 0, 0)
112
113 /* Limit of iterations of early inliner.  This basically bounds number of
114    nested indirect calls early inliner can resolve.  Deeper chains are still
115    handled by late inlining.  */
116 DEFPARAM (PARAM_EARLY_INLINER_MAX_ITERATIONS,
117           "max-early-inliner-iterations",
118           "The maximum number of nested indirect inlining performed by early inliner",
119           10, 0, 0)
120
121 /* Limit on probability of entry BB.  */
122 DEFPARAM (PARAM_COMDAT_SHARING_PROBABILITY,
123           "comdat-sharing-probability",
124           "Probability that COMDAT function will be shared with different compilatoin unit",
125           20, 0, 0)
126
127 /* Limit on probability of entry BB.  */
128 DEFPARAM (PARAM_PARTIAL_INLINING_ENTRY_PROBABILITY,
129           "partial-inlining-entry-probability",
130           "Maximum probability of the entry BB of split region (in percent relative to entry BB of the function) to make partial inlining happen",
131           70, 0, 0)
132
133 /* Limit the number of expansions created by the variable expansion
134    optimization to avoid register pressure.  */
135 DEFPARAM (PARAM_MAX_VARIABLE_EXPANSIONS,
136           "max-variable-expansions-in-unroller",
137           "If -fvariable-expansion-in-unroller is used, the maximum number of times that an individual variable will be expanded during loop unrolling",
138           1, 0, 0)
139
140 /* Limit loop autovectorization to loops with large enough iteration count.  */
141 DEFPARAM (PARAM_MIN_VECT_LOOP_BOUND,
142           "min-vect-loop-bound",
143           "If -ftree-vectorize is used, the minimal loop bound of a loop to be considered for vectorization",
144           1, 1, 0)
145
146 /* The maximum number of instructions to consider when looking for an
147    instruction to fill a delay slot.  If more than this arbitrary
148    number of instructions is searched, the time savings from filling
149    the delay slot will be minimal so stop searching.  Increasing
150    values mean more aggressive optimization, making the compile time
151    increase with probably small improvement in executable run time.  */
152 DEFPARAM (PARAM_MAX_DELAY_SLOT_INSN_SEARCH,
153           "max-delay-slot-insn-search",
154           "The maximum number of instructions to consider to fill a delay slot",
155           100, 0, 0)
156
157 /* When trying to fill delay slots, the maximum number of instructions
158    to consider when searching for a block with valid live register
159    information.  Increasing this arbitrarily chosen value means more
160    aggressive optimization, increasing the compile time.  This
161    parameter should be removed when the delay slot code is rewritten
162    to maintain the control-flow graph.  */
163 DEFPARAM(PARAM_MAX_DELAY_SLOT_LIVE_SEARCH,
164          "max-delay-slot-live-search",
165          "The maximum number of instructions to consider to find accurate live register information",
166          333, 0, 0)
167
168 /* This parameter limits the number of branch elements that the
169    scheduler will track anti-dependencies through without resetting
170    the tracking mechanism.  Large functions with few calls or barriers
171    can generate lists containing many 1000's of dependencies.  Generally
172    the compiler either uses all available memory, or runs for far too long.  */
173 DEFPARAM(PARAM_MAX_PENDING_LIST_LENGTH,
174          "max-pending-list-length",
175          "The maximum length of scheduling's pending operations list",
176          32, 0, 0)
177
178 DEFPARAM(PARAM_LARGE_FUNCTION_INSNS,
179          "large-function-insns",
180          "The size of function body to be considered large",
181          2700, 0, 0)
182 DEFPARAM(PARAM_LARGE_FUNCTION_GROWTH,
183          "large-function-growth",
184          "Maximal growth due to inlining of large function (in percent)",
185          100, 0, 0)
186 DEFPARAM(PARAM_LARGE_UNIT_INSNS,
187          "large-unit-insns",
188          "The size of translation unit to be considered large",
189          10000, 0, 0)
190 DEFPARAM(PARAM_INLINE_UNIT_GROWTH,
191          "inline-unit-growth",
192          "How much can given compilation unit grow because of the inlining (in percent)",
193          30, 0, 0)
194 DEFPARAM(PARAM_IPCP_UNIT_GROWTH,
195          "ipcp-unit-growth",
196          "How much can given compilation unit grow because of the interprocedural constant propagation (in percent)",
197          10, 0, 0)
198 DEFPARAM(PARAM_EARLY_INLINING_INSNS,
199          "early-inlining-insns",
200          "Maximal estimated growth of function body caused by early inlining of single call",
201          10, 0, 0)
202 DEFPARAM(PARAM_LARGE_STACK_FRAME,
203          "large-stack-frame",
204          "The size of stack frame to be considered large",
205          256, 0, 0)
206 DEFPARAM(PARAM_STACK_FRAME_GROWTH,
207          "large-stack-frame-growth",
208          "Maximal stack frame growth due to inlining (in percent)",
209          1000, 0, 0)
210
211 /* The GCSE optimization will be disabled if it would require
212    significantly more memory than this value.  */
213 DEFPARAM(PARAM_MAX_GCSE_MEMORY,
214          "max-gcse-memory",
215          "The maximum amount of memory to be allocated by GCSE",
216          50 * 1024 * 1024, 0, 0)
217
218 /* The GCSE optimization of an expression will avoided if the ratio of
219    insertions to deletions is greater than this value.  */
220 DEFPARAM(PARAM_MAX_GCSE_INSERTION_RATIO,
221          "max-gcse-insertion-ratio",
222          "The maximum ratio of insertions to deletions of expressions in GCSE",
223          20, 0, 0)
224
225 /* This is the threshold ratio when to perform partial redundancy
226    elimination after reload. We perform partial redundancy elimination
227    when the following holds:
228    (Redundant load execution count)
229    ------------------------------- >= GCSE_AFTER_RELOAD_PARTIAL_FRACTION
230    (Added loads execution count)                                          */
231 DEFPARAM(PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
232         "gcse-after-reload-partial-fraction",
233         "The threshold ratio for performing partial redundancy elimination after reload",
234         3, 0, 0)
235 /* This is the threshold ratio of the critical edges execution count compared to
236    the redundant loads execution count that permits performing the load
237    redundancy elimination in gcse after reload.  */
238 DEFPARAM(PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION,
239         "gcse-after-reload-critical-fraction",
240         "The threshold ratio of critical edges execution count that permit performing redundancy elimination after reload",
241         10, 0, 0)
242
243 /* GCSE will use GCSE_COST_DISTANCE_RATION as a scaling factor
244    to calculate maximum distance for which an expression is allowed to move
245    from its rtx_cost.  */
246 DEFPARAM(PARAM_GCSE_COST_DISTANCE_RATIO,
247          "gcse-cost-distance-ratio",
248          "Scaling factor in calculation of maximum distance an expression can be moved by GCSE optimizations",
249          10, 0, 0)
250 /* GCSE won't restrict distance for which an expression with rtx_cost greater
251    than COSTS_N_INSN(GCSE_UNRESTRICTED_COST) is allowed to move.  */
252 DEFPARAM(PARAM_GCSE_UNRESTRICTED_COST,
253          "gcse-unrestricted-cost",
254          "Cost at which GCSE optimizations will not constraint the distance an expression can travel",
255          3, 0, 0)
256
257 /* How deep from a given basic block the dominator tree should be searched
258    for expressions to hoist to the block.  The value of 0 will avoid limiting
259    the search.  */
260 DEFPARAM(PARAM_MAX_HOIST_DEPTH,
261          "max-hoist-depth",
262          "Maximum depth of search in the dominator tree for expressions to hoist",
263          30, 0, 0)
264
265 /* This parameter limits the number of insns in a loop that will be unrolled,
266    and by how much the loop is unrolled.
267
268    This limit should be at most half of the peeling limits:  loop unroller
269    decides to not unroll loops that iterate fewer than 2*number of allowed
270    unrollings and thus we would have loops that are neither peeled or unrolled
271    otherwise.  */
272 DEFPARAM(PARAM_MAX_UNROLLED_INSNS,
273          "max-unrolled-insns",
274          "The maximum number of instructions to consider to unroll in a loop",
275          200, 0, 0)
276 /* This parameter limits how many times the loop is unrolled depending
277    on number of insns really executed in each iteration.  */
278 DEFPARAM(PARAM_MAX_AVERAGE_UNROLLED_INSNS,
279          "max-average-unrolled-insns",
280          "The maximum number of instructions to consider to unroll in a loop on average",
281          80, 0, 0)
282 /* The maximum number of unrollings of a single loop.  */
283 DEFPARAM(PARAM_MAX_UNROLL_TIMES,
284         "max-unroll-times",
285         "The maximum number of unrollings of a single loop",
286         8, 0, 0)
287 /* The maximum number of insns of a peeled loop.  */
288 DEFPARAM(PARAM_MAX_PEELED_INSNS,
289         "max-peeled-insns",
290         "The maximum number of insns of a peeled loop",
291         400, 0, 0)
292 /* The maximum number of peelings of a single loop.  */
293 DEFPARAM(PARAM_MAX_PEEL_TIMES,
294         "max-peel-times",
295         "The maximum number of peelings of a single loop",
296         16, 0, 0)
297 /* The maximum number of insns of a peeled loop.  */
298 DEFPARAM(PARAM_MAX_COMPLETELY_PEELED_INSNS,
299         "max-completely-peeled-insns",
300         "The maximum number of insns of a completely peeled loop",
301         400, 0, 0)
302 /* The maximum number of peelings of a single loop that is peeled completely.  */
303 DEFPARAM(PARAM_MAX_COMPLETELY_PEEL_TIMES,
304         "max-completely-peel-times",
305         "The maximum number of peelings of a single loop that is peeled completely",
306         16, 0, 0)
307 /* The maximum number of insns of a peeled loop that rolls only once.  */
308 DEFPARAM(PARAM_MAX_ONCE_PEELED_INSNS,
309         "max-once-peeled-insns",
310         "The maximum number of insns of a peeled loop that rolls only once",
311         400, 0, 0)
312 /* The maximum depth of a loop nest we completely peel.  */
313 DEFPARAM(PARAM_MAX_UNROLL_ITERATIONS,
314          "max-completely-peel-loop-nest-depth",
315          "The maximum depth of a loop nest we completely peel",
316          8, 0, 0)
317
318 /* The maximum number of insns of an unswitched loop.  */
319 DEFPARAM(PARAM_MAX_UNSWITCH_INSNS,
320         "max-unswitch-insns",
321         "The maximum number of insns of an unswitched loop",
322         50, 0, 0)
323 /* The maximum level of recursion in unswitch_single_loop.  */
324 DEFPARAM(PARAM_MAX_UNSWITCH_LEVEL,
325         "max-unswitch-level",
326         "The maximum number of unswitchings in a single loop",
327         3, 0, 0)
328
329 /* The maximum number of iterations of a loop the brute force algorithm
330    for analysis of # of iterations of the loop tries to evaluate.  */
331 DEFPARAM(PARAM_MAX_ITERATIONS_TO_TRACK,
332         "max-iterations-to-track",
333         "Bound on the number of iterations the brute force # of iterations analysis algorithm evaluates",
334         1000, 0, 0)
335 /* A cutoff to avoid costly computations of the number of iterations in
336    the doloop transformation.  */
337 DEFPARAM(PARAM_MAX_ITERATIONS_COMPUTATION_COST,
338         "max-iterations-computation-cost",
339         "Bound on the cost of an expression to compute the number of iterations",
340         10, 0, 0)
341
342 /* This parameter is used to tune SMS MAX II calculations.  */
343 DEFPARAM(PARAM_SMS_MAX_II_FACTOR,
344          "sms-max-ii-factor",
345          "A factor for tuning the upper bound that swing modulo scheduler uses for scheduling a loop",
346          100, 0, 0)
347 DEFPARAM(PARAM_SMS_DFA_HISTORY,
348          "sms-dfa-history",
349          "The number of cycles the swing modulo scheduler considers when checking conflicts using DFA",
350          0, 0, 0)
351 DEFPARAM(PARAM_SMS_LOOP_AVERAGE_COUNT_THRESHOLD,
352          "sms-loop-average-count-threshold",
353          "A threshold on the average loop count considered by the swing modulo scheduler",
354          0, 0, 0)
355
356 DEFPARAM(HOT_BB_COUNT_FRACTION,
357          "hot-bb-count-fraction",
358          "Select fraction of the maximal count of repetitions of basic block in program given basic block needs to have to be considered hot",
359          10000, 0, 0)
360 DEFPARAM(HOT_BB_FREQUENCY_FRACTION,
361          "hot-bb-frequency-fraction",
362          "Select fraction of the maximal frequency of executions of basic block in function given basic block needs to have to be considered hot",
363          1000, 0, 0)
364
365 DEFPARAM (PARAM_ALIGN_THRESHOLD,
366           "align-threshold",
367           "Select fraction of the maximal frequency of executions of basic block in function given basic block get alignment",
368           100, 0, 0)
369
370 DEFPARAM (PARAM_ALIGN_LOOP_ITERATIONS,
371           "align-loop-iterations",
372           "Loops iterating at least selected number of iterations will get loop alignement.",
373           4, 0, 0)
374
375 /* For guessed profiles, the loops having unknown number of iterations
376    are predicted to iterate relatively few (10) times at average.
377    For functions containing one loop with large known number of iterations
378    and other loops having unbounded loops we would end up predicting all
379    the other loops cold that is not usually the case.  So we need to artificially
380    flatten the profile.
381
382    We need to cut the maximal predicted iterations to large enough iterations
383    so the loop appears important, but safely within HOT_BB_COUNT_FRACTION
384    range.  */
385
386 DEFPARAM(PARAM_MAX_PREDICTED_ITERATIONS,
387          "max-predicted-iterations",
388          "The maximum number of loop iterations we predict statically",
389          100, 0, 0)
390 DEFPARAM(TRACER_DYNAMIC_COVERAGE_FEEDBACK,
391          "tracer-dynamic-coverage-feedback",
392          "The percentage of function, weighted by execution frequency, that must be covered by trace formation. Used when profile feedback is available",
393          95, 0, 100)
394 DEFPARAM(TRACER_DYNAMIC_COVERAGE,
395          "tracer-dynamic-coverage",
396          "The percentage of function, weighted by execution frequency, that must be covered by trace formation. Used when profile feedback is not available",
397          75, 0, 100)
398 DEFPARAM(TRACER_MAX_CODE_GROWTH,
399          "tracer-max-code-growth",
400          "Maximal code growth caused by tail duplication (in percent)",
401          100, 0, 0)
402 DEFPARAM(TRACER_MIN_BRANCH_RATIO,
403          "tracer-min-branch-ratio",
404          "Stop reverse growth if the reverse probability of best edge is less than this threshold (in percent)",
405          10, 0, 100)
406 DEFPARAM(TRACER_MIN_BRANCH_PROBABILITY_FEEDBACK,
407          "tracer-min-branch-probability-feedback",
408          "Stop forward growth if the probability of best edge is less than this threshold (in percent). Used when profile feedback is available",
409          80, 0, 100)
410 DEFPARAM(TRACER_MIN_BRANCH_PROBABILITY,
411          "tracer-min-branch-probability",
412          "Stop forward growth if the probability of best edge is less than this threshold (in percent). Used when profile feedback is not available",
413          50, 0, 100)
414
415 /* The maximum number of incoming edges to consider for crossjumping.  */
416 DEFPARAM(PARAM_MAX_CROSSJUMP_EDGES,
417          "max-crossjump-edges",
418          "The maximum number of incoming edges to consider for crossjumping",
419          100, 0, 0)
420
421 /* The minimum number of matching instructions to consider for crossjumping.  */
422 DEFPARAM(PARAM_MIN_CROSSJUMP_INSNS,
423      "min-crossjump-insns",
424      "The minimum number of matching instructions to consider for crossjumping",
425      5, 0, 0)
426
427 /* The maximum number expansion factor when copying basic blocks.  */
428 DEFPARAM(PARAM_MAX_GROW_COPY_BB_INSNS,
429      "max-grow-copy-bb-insns",
430      "The maximum expansion factor when copying basic blocks",
431      8, 0, 0)
432
433 /* The maximum number of insns to duplicate when unfactoring computed gotos.  */
434 DEFPARAM(PARAM_MAX_GOTO_DUPLICATION_INSNS,
435      "max-goto-duplication-insns",
436      "The maximum number of insns to duplicate when unfactoring computed gotos",
437      8, 0, 0)
438
439 /* The maximum length of path considered in cse.  */
440 DEFPARAM(PARAM_MAX_CSE_PATH_LENGTH,
441          "max-cse-path-length",
442          "The maximum length of path considered in cse",
443          10, 0, 0)
444 DEFPARAM(PARAM_MAX_CSE_INSNS,
445          "max-cse-insns",
446          "The maximum instructions CSE process before flushing",
447          1000, 0, 0)
448
449 /* The cost of expression in loop invariant motion that is considered
450    expensive.  */
451 DEFPARAM(PARAM_LIM_EXPENSIVE,
452          "lim-expensive",
453          "The minimum cost of an expensive expression in the loop invariant motion",
454          20, 0, 0)
455
456 /* Bound on number of candidates for induction variables below that
457    all candidates are considered for each use in induction variable
458    optimizations.  */
459
460 DEFPARAM(PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
461          "iv-consider-all-candidates-bound",
462          "Bound on number of candidates below that all candidates are considered in iv optimizations",
463          30, 0, 0)
464
465 /* The induction variable optimizations give up on loops that contain more
466    induction variable uses.  */
467
468 DEFPARAM(PARAM_IV_MAX_CONSIDERED_USES,
469          "iv-max-considered-uses",
470          "Bound on number of iv uses in loop optimized in iv optimizations",
471          250, 0, 0)
472
473 /* If there are at most this number of ivs in the set, try removing unnecessary
474    ivs from the set always.  */
475
476 DEFPARAM(PARAM_IV_ALWAYS_PRUNE_CAND_SET_BOUND,
477          "iv-always-prune-cand-set-bound",
478          "If number of candidates in the set is smaller, we always try to remove unused ivs during its optimization",
479          10, 0, 0)
480
481 DEFPARAM(PARAM_SCEV_MAX_EXPR_SIZE,
482          "scev-max-expr-size",
483          "Bound on size of expressions used in the scalar evolutions analyzer",
484          100, 0, 0)
485
486 DEFPARAM(PARAM_OMEGA_MAX_VARS,
487          "omega-max-vars",
488          "Bound on the number of variables in Omega constraint systems",
489          128, 0, 0)
490
491 DEFPARAM(PARAM_OMEGA_MAX_GEQS,
492          "omega-max-geqs",
493          "Bound on the number of inequalities in Omega constraint systems",
494          256, 0, 0)
495
496 DEFPARAM(PARAM_OMEGA_MAX_EQS,
497          "omega-max-eqs",
498          "Bound on the number of equalities in Omega constraint systems",
499          128, 0, 0)
500
501 DEFPARAM(PARAM_OMEGA_MAX_WILD_CARDS,
502          "omega-max-wild-cards",
503          "Bound on the number of wild cards in Omega constraint systems",
504          18, 0, 0)
505
506 DEFPARAM(PARAM_OMEGA_HASH_TABLE_SIZE,
507          "omega-hash-table-size",
508          "Bound on the size of the hash table in Omega constraint systems",
509          550, 0, 0)
510
511 DEFPARAM(PARAM_OMEGA_MAX_KEYS,
512          "omega-max-keys",
513          "Bound on the number of keys in Omega constraint systems",
514          500, 0, 0)
515
516 DEFPARAM(PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS,
517          "omega-eliminate-redundant-constraints",
518          "When set to 1, use expensive methods to eliminate all redundant constraints",
519          0, 0, 1)
520
521 DEFPARAM(PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS,
522          "vect-max-version-for-alignment-checks",
523          "Bound on number of runtime checks inserted by the vectorizer's loop versioning for alignment check",
524          6, 0, 0)
525
526 DEFPARAM(PARAM_VECT_MAX_VERSION_FOR_ALIAS_CHECKS,
527          "vect-max-version-for-alias-checks",
528          "Bound on number of runtime checks inserted by the vectorizer's loop versioning for alias check",
529          10, 0, 0)
530
531 DEFPARAM(PARAM_MAX_CSELIB_MEMORY_LOCATIONS,
532          "max-cselib-memory-locations",
533          "The maximum memory locations recorded by cselib",
534          500, 0, 0)
535
536 #ifdef ENABLE_GC_ALWAYS_COLLECT
537 # define GGC_MIN_EXPAND_DEFAULT 0
538 # define GGC_MIN_HEAPSIZE_DEFAULT 0
539 #else
540 # define GGC_MIN_EXPAND_DEFAULT 30
541 # define GGC_MIN_HEAPSIZE_DEFAULT 4096
542 #endif
543
544 DEFPARAM(GGC_MIN_EXPAND,
545          "ggc-min-expand",
546          "Minimum heap expansion to trigger garbage collection, as a percentage of the total size of the heap",
547          GGC_MIN_EXPAND_DEFAULT, 0, 0)
548
549 DEFPARAM(GGC_MIN_HEAPSIZE,
550          "ggc-min-heapsize",
551          "Minimum heap size before we start collecting garbage, in kilobytes",
552          GGC_MIN_HEAPSIZE_DEFAULT, 0, 0)
553
554 #undef GGC_MIN_EXPAND_DEFAULT
555 #undef GGC_MIN_HEAPSIZE_DEFAULT
556
557 DEFPARAM(PARAM_MAX_RELOAD_SEARCH_INSNS,
558          "max-reload-search-insns",
559          "The maximum number of instructions to search backward when looking for equivalent reload",
560          100, 0, 0)
561
562 DEFPARAM(PARAM_MAX_SCHED_REGION_BLOCKS,
563          "max-sched-region-blocks",
564          "The maximum number of blocks in a region to be considered for interblock scheduling",
565          10, 0, 0)
566
567 DEFPARAM(PARAM_MAX_SCHED_REGION_INSNS,
568          "max-sched-region-insns",
569          "The maximum number of insns in a region to be considered for interblock scheduling",
570          100, 0, 0)
571
572 DEFPARAM(PARAM_MAX_PIPELINE_REGION_BLOCKS,
573          "max-pipeline-region-blocks",
574          "The maximum number of blocks in a region to be considered for interblock scheduling",
575          15, 0, 0)
576
577 DEFPARAM(PARAM_MAX_PIPELINE_REGION_INSNS,
578          "max-pipeline-region-insns",
579          "The maximum number of insns in a region to be considered for interblock scheduling",
580          200, 0, 0)
581
582 DEFPARAM(PARAM_MIN_SPEC_PROB,
583          "min-spec-prob",
584          "The minimum probability of reaching a source block for interblock speculative scheduling",
585          40, 0, 0)
586
587 DEFPARAM(PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS,
588          "max-sched-extend-regions-iters",
589          "The maximum number of iterations through CFG to extend regions",
590          0, 0, 0)
591
592 DEFPARAM(PARAM_MAX_SCHED_INSN_CONFLICT_DELAY,
593          "max-sched-insn-conflict-delay",
594          "The maximum conflict delay for an insn to be considered for speculative motion",
595          3, 1, 10)
596
597 DEFPARAM(PARAM_SCHED_SPEC_PROB_CUTOFF,
598          "sched-spec-prob-cutoff",
599          "The minimal probability of speculation success (in percents), so that speculative insn will be scheduled.",
600          40, 0, 100)
601
602 DEFPARAM(PARAM_SELSCHED_MAX_LOOKAHEAD,
603          "selsched-max-lookahead",
604          "The maximum size of the lookahead window of selective scheduling",
605          50, 0, 0)
606
607 DEFPARAM(PARAM_SELSCHED_MAX_SCHED_TIMES,
608          "selsched-max-sched-times",
609          "Maximum number of times that an insn could be scheduled",
610          2, 0, 0)
611
612 DEFPARAM(PARAM_SELSCHED_INSNS_TO_RENAME,
613          "selsched-insns-to-rename",
614          "Maximum number of instructions in the ready list that are considered eligible for renaming",
615          2, 0, 0)
616
617 DEFPARAM (PARAM_SCHED_MEM_TRUE_DEP_COST,
618           "sched-mem-true-dep-cost",
619           "Minimal distance between possibly conflicting store and load",
620           1, 0, 0)
621
622 DEFPARAM(PARAM_MAX_LAST_VALUE_RTL,
623          "max-last-value-rtl",
624          "The maximum number of RTL nodes that can be recorded as combiner's last value",
625          10000, 0, 0)
626
627 /* INTEGER_CST nodes are shared for values [{-1,0} .. N) for
628    {signed,unsigned} integral types.  This determines N.
629    Experimentation shows 256 to be a good value.  */
630 DEFPARAM (PARAM_INTEGER_SHARE_LIMIT,
631           "integer-share-limit",
632           "The upper bound for sharing integer constants",
633           256, 2, 2)
634
635 /* Incremental SSA updates for virtual operands may be very slow if
636    there is a large number of mappings to process.  In those cases, it
637    is faster to rewrite the virtual symbols from scratch as if they
638    had been recently introduced.  This heuristic cannot be applied to
639    SSA mappings for real SSA names, only symbols kept in FUD chains.
640
641    PARAM_MIN_VIRTUAL_MAPPINGS specifies the minimum number of virtual
642    mappings that should be registered to trigger the heuristic.
643
644    PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO specifies the ratio between
645    mappings and symbols.  If the number of virtual mappings is
646    PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO bigger than the number of
647    virtual symbols to be updated, then the updater switches to a full
648    update for those symbols.  */
649 DEFPARAM (PARAM_MIN_VIRTUAL_MAPPINGS,
650           "min-virtual-mappings",
651           "Minimum number of virtual mappings to consider switching to full virtual renames",
652           100, 0, 0)
653
654 DEFPARAM (PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO,
655           "virtual-mappings-ratio",
656           "Ratio between virtual mappings and virtual symbols to do full virtual renames",
657           3, 0, 0)
658
659 DEFPARAM (PARAM_SSP_BUFFER_SIZE,
660           "ssp-buffer-size",
661           "The lower bound for a buffer to be considered for stack smashing protection",
662           8, 1, 0)
663
664 /* When we thread through a block we have to make copies of the
665    statements within the block.  Clearly for large blocks the code
666    duplication is bad.
667
668    PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS specifies the maximum number
669    of statements and PHI nodes allowed in a block which is going to
670    be duplicated for thread jumping purposes.
671
672    Some simple analysis showed that more than 99% of the jump
673    threading opportunities are for blocks with less than 15
674    statements.  So we can get the benefits of jump threading
675    without excessive code bloat for pathological cases with the
676    throttle set at 15 statements.  */
677 DEFPARAM (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS,
678           "max-jump-thread-duplication-stmts",
679           "Maximum number of statements allowed in a block that needs to be duplicated when threading jumps",
680           15, 0, 0)
681
682 /* This is the maximum number of fields a variable may have before the pointer analysis machinery
683    will stop trying to treat it in a field-sensitive manner.
684    There are programs out there with thousands of fields per structure, and handling them
685    field-sensitively is not worth the cost.  */
686 DEFPARAM (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE,
687           "max-fields-for-field-sensitive",
688           "Maximum number of fields in a structure before pointer analysis treats the structure as a single variable",
689           0, 0, 0)
690
691 DEFPARAM(PARAM_MAX_SCHED_READY_INSNS,
692          "max-sched-ready-insns",
693          "The maximum number of instructions ready to be issued to be considered by the scheduler during the first scheduling pass",
694          100, 0, 0)
695
696 /* Prefetching and cache-optimizations related parameters.  Default values are
697    usually set by machine description.  */
698
699 /* The number of insns executed before prefetch is completed.  */
700
701 DEFPARAM (PARAM_PREFETCH_LATENCY,
702          "prefetch-latency",
703          "The number of insns executed before prefetch is completed",
704          200, 0, 0)
705
706 /* The number of prefetches that can run at the same time.  */
707
708 DEFPARAM (PARAM_SIMULTANEOUS_PREFETCHES,
709           "simultaneous-prefetches",
710           "The number of prefetches that can run at the same time",
711           3, 0, 0)
712
713 /* The size of L1 cache in kB.  */
714
715 DEFPARAM (PARAM_L1_CACHE_SIZE,
716           "l1-cache-size",
717           "The size of L1 cache",
718           64, 0, 0)
719
720 /* The size of L1 cache line in bytes.  */
721
722 DEFPARAM (PARAM_L1_CACHE_LINE_SIZE,
723           "l1-cache-line-size",
724           "The size of L1 cache line",
725           32, 0, 0)
726
727 /* The size of L2 cache in kB.  */
728
729 DEFPARAM (PARAM_L2_CACHE_SIZE,
730           "l2-cache-size",
731           "The size of L2 cache",
732           512, 0, 0)
733
734 /* Whether we should use canonical types rather than deep "structural"
735    type checking.  Setting this value to 1 (the default) improves
736    compilation performance in the C++ and Objective-C++ front end;
737    this value should only be set to zero to work around bugs in the
738    canonical type system by disabling it.  */
739
740 DEFPARAM (PARAM_USE_CANONICAL_TYPES,
741           "use-canonical-types",
742           "Whether to use canonical types",
743           1, 0, 1)
744
745 DEFPARAM (PARAM_MAX_PARTIAL_ANTIC_LENGTH,
746           "max-partial-antic-length",
747           "Maximum length of partial antic set when performing tree pre optimization",
748           100, 0, 0)
749
750 /* The following is used as a stop-gap limit for cases where really huge
751    SCCs blow up memory and compile-time use too much.  If we hit this limit,
752    SCCVN and such FRE and PRE will be not done at all for the current
753    function.  */
754
755 DEFPARAM (PARAM_SCCVN_MAX_SCC_SIZE,
756           "sccvn-max-scc-size",
757           "Maximum size of a SCC before SCCVN stops processing a function",
758           10000, 10, 0)
759
760 DEFPARAM (PARAM_IRA_MAX_LOOPS_NUM,
761           "ira-max-loops-num",
762           "Max loops number for regional RA",
763           100, 0, 0)
764
765 DEFPARAM (PARAM_IRA_MAX_CONFLICT_TABLE_SIZE,
766           "ira-max-conflict-table-size",
767           "Max size of conflict table in MB",
768           1000, 0, 0)
769
770 DEFPARAM (PARAM_IRA_LOOP_RESERVED_REGS,
771           "ira-loop-reserved-regs",
772           "The number of registers in each class kept unused by loop invariant motion",
773           2, 0, 0)
774
775 /* Switch initialization conversion will refuse to create arrays that are
776    bigger than this parameter times the number of switch branches.  */
777
778 DEFPARAM (PARAM_SWITCH_CONVERSION_BRANCH_RATIO,
779           "switch-conversion-max-branch-ratio",
780           "The maximum ratio between array size and switch branches for "
781           "a switch conversion to take place",
782           8, 1, 0)
783
784 /* Size of tiles when doing loop blocking.  */
785
786 DEFPARAM (PARAM_LOOP_BLOCK_TILE_SIZE,
787           "loop-block-tile-size",
788           "size of tiles for loop blocking",
789           51, 0, 0)
790
791 /* Maximal number of parameters that we allow in a SCoP.  */
792
793 DEFPARAM (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS,
794           "graphite-max-nb-scop-params",
795           "maximum number of parameters in a SCoP",
796           10, 0, 0)
797
798 /* Maximal number of basic blocks in the functions analyzed by Graphite.  */
799
800 DEFPARAM (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION,
801           "graphite-max-bbs-per-function",
802           "maximum number of basic blocks per function to be analyzed by Graphite",
803           100, 0, 0)
804
805 /* Avoid doing loop invariant motion on very large loops.  */
806
807 DEFPARAM (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP,
808           "loop-invariant-max-bbs-in-loop",
809           "Max basic blocks number in loop for loop invariant motion",
810           10000, 0, 0)
811
812 /* Avoid SLP vectorization of large basic blocks.  */
813 DEFPARAM (PARAM_SLP_MAX_INSNS_IN_BB,
814           "slp-max-insns-in-bb",
815           "Maximum number of instructions in basic block to be considered for SLP vectorization",
816           1000, 0, 0)
817
818 DEFPARAM (PARAM_MIN_INSN_TO_PREFETCH_RATIO,
819           "min-insn-to-prefetch-ratio",
820           "Min. ratio of insns to prefetches to enable prefetching for "
821           "a loop with an unknown trip count",
822           10, 0, 0)
823
824 DEFPARAM (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO,
825           "prefetch-min-insn-to-mem-ratio",
826           "Min. ratio of insns to mem ops to enable prefetching in a loop",
827           3, 0, 0)
828
829 /* Set maximum hash table size for var tracking.  */
830
831 DEFPARAM (PARAM_MAX_VARTRACK_SIZE,
832           "max-vartrack-size",
833           "Max. size of var tracking hash tables",
834           50000000, 0, 0)
835
836 /* Set minimum insn uid for non-debug insns.  */
837
838 DEFPARAM (PARAM_MIN_NONDEBUG_INSN_UID,
839           "min-nondebug-insn-uid",
840           "The minimum UID to be used for a nondebug insn",
841           0, 1, 0)
842
843 DEFPARAM (PARAM_IPA_SRA_PTR_GROWTH_FACTOR,
844           "ipa-sra-ptr-growth-factor",
845           "Maximum allowed growth of size of new parameters ipa-sra replaces "
846           "a pointer to an aggregate with",
847           2, 0, 0)
848
849 DEFPARAM (PARAM_DEVIRT_TYPE_LIST_SIZE,
850           "devirt-type-list-size",
851           "Maximum size of a type list associated with each parameter for "
852           "devirtualization",
853           8, 0, 0)
854
855 /* WHOPR partitioning configuration.  */
856
857 DEFPARAM (PARAM_LTO_PARTITIONS,
858           "lto-partitions",
859           "Number of paritions program should be split to",
860           32, 0, 0)
861
862 DEFPARAM (MIN_PARTITION_SIZE,
863           "lto-min-partition",
864           "Size of minimal paritition for WHOPR (in estimated instructions)",
865           1000, 0, 0)
866
867 /* Diagnostic parameters.  */
868
869 DEFPARAM (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP,
870           "cxx-max-namespaces-for-diagnostic-help",
871           "Maximum number of namespaces to search for alternatives when "
872           "name lookup fails",
873           1000, 0, 0)
874
875 /*
876 Local variables:
877 mode:c
878 End:
879 */