Minor edits.
[platform/upstream/gcc.git] / gcc / params.def
1 /* params.def - Run-time parameters.
2    Copyright (C) 2001-2017 Free Software Foundation, Inc.
3    Written by Mark Mitchell <mark@codesourcery.com>.
4
5 This file is part of GCC.
6
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 3, or (at your option) any later
10 version.
11
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3.  If not see
19 <http://www.gnu.org/licenses/>.  */
20
21 /* This file contains definitions for language-independent
22    parameters.  The DEFPARAM macro takes 6 arguments:
23
24      - The enumeral corresponding to this parameter.
25
26      - The name that can be used to set this parameter using the
27        command-line option `--param <name>=<value>'.
28
29      - A help string explaining how the parameter is used.
30
31      - A default value for the parameter.
32
33      - The minimum acceptable value for the parameter.
34
35      - The maximum acceptable value for the parameter (if greater than
36      the minimum).
37
38    The DEFPARAMENUM<N> macro is similar, but instead of the minumum and maximum
39    arguments, it contains a list of <N> allowed strings, corresponding to
40    integer values 0..<N>-1.  Note that the default argument needs to be
41    specified as one of the allowed strings, rather than an integer value.
42
43    Be sure to add an entry to invoke.texi summarizing the parameter.  */
44
45 /* When branch is predicted to be taken with probability lower than this
46    threshold (in percent), then it is considered well predictable. */
47 DEFPARAM (PARAM_PREDICTABLE_BRANCH_OUTCOME,
48           "predictable-branch-outcome",
49           "Maximal estimated outcome of branch considered predictable.",
50           2, 0, 50)
51
52 DEFPARAM (PARAM_INLINE_MIN_SPEEDUP,
53           "inline-min-speedup",
54           "The minimal estimated speedup allowing inliner to ignore inline-insns-single and inline-insns-auto.",
55           8, 0, 0)
56
57 /* The single function inlining limit. This is the maximum size
58    of a function counted in internal gcc instructions (not in
59    real machine instructions) that is eligible for inlining
60    by the tree inliner.
61    The default value is 450.
62    Only functions marked inline (or methods defined in the class
63    definition for C++) are affected by this.
64    There are more restrictions to inlining: If inlined functions
65    call other functions, the already inlined instructions are
66    counted and once the recursive inline limit (see
67    "max-inline-insns" parameter) is exceeded, the acceptable size
68    gets decreased.  */
69 DEFPARAM (PARAM_MAX_INLINE_INSNS_SINGLE,
70           "max-inline-insns-single",
71           "The maximum number of instructions in a single function eligible for inlining.",
72           400, 0, 0)
73
74 /* The single function inlining limit for functions that are
75    inlined by virtue of -finline-functions (-O3).
76    This limit should be chosen to be below or equal to the limit
77    that is applied to functions marked inlined (or defined in the
78    class declaration in C++) given by the "max-inline-insns-single"
79    parameter.
80    The default value is 40.  */
81 DEFPARAM (PARAM_MAX_INLINE_INSNS_AUTO,
82           "max-inline-insns-auto",
83           "The maximum number of instructions when automatically inlining.",
84           40, 0, 0)
85
86 DEFPARAM (PARAM_MAX_INLINE_INSNS_RECURSIVE,
87           "max-inline-insns-recursive",
88           "The maximum number of instructions inline function can grow to via recursive inlining.",
89           450, 0, 0)
90
91 DEFPARAM (PARAM_MAX_INLINE_INSNS_RECURSIVE_AUTO,
92           "max-inline-insns-recursive-auto",
93           "The maximum number of instructions non-inline function can grow to via recursive inlining.",
94           450, 0, 0)
95
96 DEFPARAM (PARAM_MAX_INLINE_RECURSIVE_DEPTH,
97           "max-inline-recursive-depth",
98           "The maximum depth of recursive inlining for inline functions.",
99           8, 0, 0)
100
101 DEFPARAM (PARAM_MAX_INLINE_RECURSIVE_DEPTH_AUTO,
102           "max-inline-recursive-depth-auto",
103           "The maximum depth of recursive inlining for non-inline functions.",
104           8, 0, 0)
105
106 DEFPARAM (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY,
107           "min-inline-recursive-probability",
108           "Inline recursively only when the probability of call being executed exceeds the parameter.",
109           10, 0, 0)
110
111 /* Limit of iterations of early inliner.  This basically bounds number of
112    nested indirect calls early inliner can resolve.  Deeper chains are still
113    handled by late inlining.  */
114 DEFPARAM (PARAM_EARLY_INLINER_MAX_ITERATIONS,
115           "max-early-inliner-iterations",
116           "The maximum number of nested indirect inlining performed by early inliner.",
117           1, 0, 0)
118
119 /* Limit on probability of entry BB.  */
120 DEFPARAM (PARAM_COMDAT_SHARING_PROBABILITY,
121           "comdat-sharing-probability",
122           "Probability that COMDAT function will be shared with different compilation unit.",
123           20, 0, 0)
124
125 /* Limit on probability of entry BB.  */
126 DEFPARAM (PARAM_PARTIAL_INLINING_ENTRY_PROBABILITY,
127           "partial-inlining-entry-probability",
128           "Maximum probability of the entry BB of split region (in percent relative to entry BB of the function) to make partial inlining happen.",
129           70, 0, 100)
130
131 /* Limit the number of expansions created by the variable expansion
132    optimization to avoid register pressure.  */
133 DEFPARAM (PARAM_MAX_VARIABLE_EXPANSIONS,
134           "max-variable-expansions-in-unroller",
135           "If -fvariable-expansion-in-unroller is used, the maximum number of times that an individual variable will be expanded during loop unrolling.",
136           1, 0, 0)
137
138 /* Limit loop autovectorization to loops with large enough iteration count.  */
139 DEFPARAM (PARAM_MIN_VECT_LOOP_BOUND,
140           "min-vect-loop-bound",
141           "If -ftree-vectorize is used, the minimal loop bound of a loop to be considered for vectorization.",
142           1, 1, 0)
143
144 /* The maximum number of instructions to consider when looking for an
145    instruction to fill a delay slot.  If more than this arbitrary
146    number of instructions is searched, the time savings from filling
147    the delay slot will be minimal so stop searching.  Increasing
148    values mean more aggressive optimization, making the compile time
149    increase with probably small improvement in executable run time.  */
150 DEFPARAM (PARAM_MAX_DELAY_SLOT_INSN_SEARCH,
151           "max-delay-slot-insn-search",
152           "The maximum number of instructions to consider to fill a delay slot.",
153           100, 0, 0)
154
155 /* When trying to fill delay slots, the maximum number of instructions
156    to consider when searching for a block with valid live register
157    information.  Increasing this arbitrarily chosen value means more
158    aggressive optimization, increasing the compile time.  This
159    parameter should be removed when the delay slot code is rewritten
160    to maintain the control-flow graph.  */
161 DEFPARAM(PARAM_MAX_DELAY_SLOT_LIVE_SEARCH,
162          "max-delay-slot-live-search",
163          "The maximum number of instructions to consider to find accurate live register information.",
164          333, 0, 0)
165
166 /* This parameter limits the number of branch elements that the
167    scheduler will track anti-dependencies through without resetting
168    the tracking mechanism.  Large functions with few calls or barriers
169    can generate lists containing many 1000's of dependencies.  Generally
170    the compiler either uses all available memory, or runs for far too long.  */
171 DEFPARAM(PARAM_MAX_PENDING_LIST_LENGTH,
172          "max-pending-list-length",
173          "The maximum length of scheduling's pending operations list.",
174          32, 0, 0)
175
176 /* This parameter limits the number of backtracking attempts when using the
177    haifa scheduler for modulo scheduling.  */
178 DEFPARAM(PARAM_MAX_MODULO_BACKTRACK_ATTEMPTS,
179          "max-modulo-backtrack-attempts",
180          "The maximum number of backtrack attempts the scheduler should make when modulo scheduling a loop.",
181          40, 0, 0)
182
183 DEFPARAM(PARAM_LARGE_FUNCTION_INSNS,
184          "large-function-insns",
185          "The size of function body to be considered large.",
186          2700, 0, 0)
187 DEFPARAM(PARAM_LARGE_FUNCTION_GROWTH,
188          "large-function-growth",
189          "Maximal growth due to inlining of large function (in percent).",
190          100, 0, 0)
191 DEFPARAM(PARAM_LARGE_UNIT_INSNS,
192          "large-unit-insns",
193          "The size of translation unit to be considered large.",
194          10000, 0, 0)
195 DEFPARAM(PARAM_INLINE_UNIT_GROWTH,
196          "inline-unit-growth",
197          "How much can given compilation unit grow because of the inlining (in percent).",
198          20, 0, 0)
199 DEFPARAM(PARAM_IPCP_UNIT_GROWTH,
200          "ipcp-unit-growth",
201          "How much can given compilation unit grow because of the interprocedural constant propagation (in percent).",
202          10, 0, 0)
203 DEFPARAM(PARAM_EARLY_INLINING_INSNS,
204          "early-inlining-insns",
205          "Maximal estimated growth of function body caused by early inlining of single call.",
206          14, 0, 0)
207 DEFPARAM(PARAM_LARGE_STACK_FRAME,
208          "large-stack-frame",
209          "The size of stack frame to be considered large.",
210          256, 0, 0)
211 DEFPARAM(PARAM_STACK_FRAME_GROWTH,
212          "large-stack-frame-growth",
213          "Maximal stack frame growth due to inlining (in percent).",
214          1000, 0, 0)
215
216 /* The GCSE optimization will be disabled if it would require
217    significantly more memory than this value.  */
218 DEFPARAM(PARAM_MAX_GCSE_MEMORY,
219          "max-gcse-memory",
220          "The maximum amount of memory to be allocated by GCSE.",
221          128 * 1024 * 1024, 0, 0)
222
223 /* The GCSE optimization of an expression will avoided if the ratio of
224    insertions to deletions is greater than this value.  */
225 DEFPARAM(PARAM_MAX_GCSE_INSERTION_RATIO,
226          "max-gcse-insertion-ratio",
227          "The maximum ratio of insertions to deletions of expressions in GCSE.",
228          20, 0, 0)
229
230 /* This is the threshold ratio when to perform partial redundancy
231    elimination after reload. We perform partial redundancy elimination
232    when the following holds:
233    (Redundant load execution count)
234    ------------------------------- >= GCSE_AFTER_RELOAD_PARTIAL_FRACTION
235    (Added loads execution count)                                          */
236 DEFPARAM(PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
237         "gcse-after-reload-partial-fraction",
238         "The threshold ratio for performing partial redundancy elimination after reload.",
239         3, 0, 0)
240 /* This is the threshold ratio of the critical edges execution count compared to
241    the redundant loads execution count that permits performing the load
242    redundancy elimination in gcse after reload.  */
243 DEFPARAM(PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION,
244         "gcse-after-reload-critical-fraction",
245         "The threshold ratio of critical edges execution count that permit performing redundancy elimination after reload.",
246         10, 0, 0)
247
248 /* GCSE will use GCSE_COST_DISTANCE_RATION as a scaling factor
249    to calculate maximum distance for which an expression is allowed to move
250    from its rtx_cost.  */
251 DEFPARAM(PARAM_GCSE_COST_DISTANCE_RATIO,
252          "gcse-cost-distance-ratio",
253          "Scaling factor in calculation of maximum distance an expression can be moved by GCSE optimizations.",
254          10, 0, 0)
255 /* GCSE won't restrict distance for which an expression with rtx_cost greater
256    than COSTS_N_INSN(GCSE_UNRESTRICTED_COST) is allowed to move.  */
257 DEFPARAM(PARAM_GCSE_UNRESTRICTED_COST,
258          "gcse-unrestricted-cost",
259          "Cost at which GCSE optimizations will not constraint the distance an expression can travel.",
260          3, 0, 0)
261
262 /* How deep from a given basic block the dominator tree should be searched
263    for expressions to hoist to the block.  The value of 0 will avoid limiting
264    the search.  */
265 DEFPARAM(PARAM_MAX_HOIST_DEPTH,
266          "max-hoist-depth",
267          "Maximum depth of search in the dominator tree for expressions to hoist.",
268          30, 0, 0)
269
270
271 /* When synthesizing expnonentiation by a real constant operations using square
272    roots, this controls how deep sqrt chains we are willing to generate.  */
273 DEFPARAM(PARAM_MAX_POW_SQRT_DEPTH,
274          "max-pow-sqrt-depth",
275          "Maximum depth of sqrt chains to use when synthesizing exponentiation by a real constant.",
276          5, 1, 32)
277
278 /* This parameter limits the number of insns in a loop that will be unrolled,
279    and by how much the loop is unrolled.
280
281    This limit should be at most half of the peeling limits:  loop unroller
282    decides to not unroll loops that iterate fewer than 2*number of allowed
283    unrollings and thus we would have loops that are neither peeled or unrolled
284    otherwise.  */
285 DEFPARAM(PARAM_MAX_UNROLLED_INSNS,
286          "max-unrolled-insns",
287          "The maximum number of instructions to consider to unroll in a loop.",
288          200, 0, 0)
289 /* This parameter limits how many times the loop is unrolled depending
290    on number of insns really executed in each iteration.  */
291 DEFPARAM(PARAM_MAX_AVERAGE_UNROLLED_INSNS,
292          "max-average-unrolled-insns",
293          "The maximum number of instructions to consider to unroll in a loop on average.",
294          80, 0, 0)
295 /* The maximum number of unrollings of a single loop.  */
296 DEFPARAM(PARAM_MAX_UNROLL_TIMES,
297         "max-unroll-times",
298         "The maximum number of unrollings of a single loop.",
299         8, 0, 0)
300 /* The maximum number of insns of a peeled loop.  */
301 DEFPARAM(PARAM_MAX_PEELED_INSNS,
302         "max-peeled-insns",
303         "The maximum number of insns of a peeled loop.",
304         100, 0, 0)
305 /* The maximum number of peelings of a single loop.  */
306 DEFPARAM(PARAM_MAX_PEEL_TIMES,
307         "max-peel-times",
308         "The maximum number of peelings of a single loop.",
309         16, 0, 0)
310 /* The maximum number of peelings of a single loop that is peeled completely.  */
311 DEFPARAM(PARAM_MAX_PEEL_BRANCHES,
312         "max-peel-branches",
313         "The maximum number of branches on the path through the peeled sequence.",
314         32, 0, 0)
315 /* The maximum number of insns of a peeled loop.  */
316 DEFPARAM(PARAM_MAX_COMPLETELY_PEELED_INSNS,
317         "max-completely-peeled-insns",
318         "The maximum number of insns of a completely peeled loop.",
319         200, 0, 0)
320 /* The maximum number of peelings of a single loop that is peeled completely.  */
321 DEFPARAM(PARAM_MAX_COMPLETELY_PEEL_TIMES,
322         "max-completely-peel-times",
323         "The maximum number of peelings of a single loop that is peeled completely.",
324         16, 0, 0)
325 /* The maximum number of insns of a peeled loop that rolls only once.  */
326 DEFPARAM(PARAM_MAX_ONCE_PEELED_INSNS,
327         "max-once-peeled-insns",
328         "The maximum number of insns of a peeled loop that rolls only once.",
329         400, 0, 0)
330 /* The maximum depth of a loop nest we completely peel.  */
331 DEFPARAM(PARAM_MAX_UNROLL_ITERATIONS,
332          "max-completely-peel-loop-nest-depth",
333          "The maximum depth of a loop nest we completely peel.",
334          8, 0, 0)
335
336 /* The maximum number of insns of an unswitched loop.  */
337 DEFPARAM(PARAM_MAX_UNSWITCH_INSNS,
338         "max-unswitch-insns",
339         "The maximum number of insns of an unswitched loop.",
340         50, 0, 0)
341 /* The maximum level of recursion in unswitch_single_loop.  */
342 DEFPARAM(PARAM_MAX_UNSWITCH_LEVEL,
343         "max-unswitch-level",
344         "The maximum number of unswitchings in a single loop.",
345         3, 0, 0)
346
347 /* The maximum number of insns in loop header duplicated by he copy loop
348    headers pass.  */
349 DEFPARAM(PARAM_MAX_LOOP_HEADER_INSNS,
350         "max-loop-header-insns",
351         "The maximum number of insns in loop header duplicated by he copy loop headers pass.",
352         20, 0, 0)
353
354 /* The maximum number of iterations of a loop the brute force algorithm
355    for analysis of # of iterations of the loop tries to evaluate.  */
356 DEFPARAM(PARAM_MAX_ITERATIONS_TO_TRACK,
357         "max-iterations-to-track",
358         "Bound on the number of iterations the brute force # of iterations analysis algorithm evaluates.",
359         1000, 0, 0)
360 /* A cutoff to avoid costly computations of the number of iterations in
361    the doloop transformation.  */
362 DEFPARAM(PARAM_MAX_ITERATIONS_COMPUTATION_COST,
363         "max-iterations-computation-cost",
364         "Bound on the cost of an expression to compute the number of iterations.",
365         10, 0, 0)
366
367 /* This parameter is used to tune SMS MAX II calculations.  */
368 DEFPARAM(PARAM_SMS_MAX_II_FACTOR,
369          "sms-max-ii-factor",
370          "A factor for tuning the upper bound that swing modulo scheduler uses for scheduling a loop.",
371          100, 0, 0)
372 /* The minimum value of stage count that swing modulo scheduler will generate.  */
373 DEFPARAM(PARAM_SMS_MIN_SC,
374         "sms-min-sc",
375         "The minimum value of stage count that swing modulo scheduler will generate.",
376         2, 1, 1)
377 DEFPARAM(PARAM_SMS_DFA_HISTORY,
378          "sms-dfa-history",
379          "The number of cycles the swing modulo scheduler considers when checking conflicts using DFA.",
380          0, 0, 0)
381 DEFPARAM(PARAM_SMS_LOOP_AVERAGE_COUNT_THRESHOLD,
382          "sms-loop-average-count-threshold",
383          "A threshold on the average loop count considered by the swing modulo scheduler.",
384          0, 0, 0)
385
386 DEFPARAM(HOT_BB_COUNT_WS_PERMILLE,
387          "hot-bb-count-ws-permille",
388          "A basic block profile count is considered hot if it contributes to "
389          "the given permillage of the entire profiled execution.",
390          999, 0, 1000)
391 DEFPARAM(HOT_BB_FREQUENCY_FRACTION,
392          "hot-bb-frequency-fraction",
393          "Select fraction of the maximal frequency of executions of basic block in function given basic block needs to have to be considered hot.",
394          1000, 0, 0)
395
396 DEFPARAM(UNLIKELY_BB_COUNT_FRACTION,
397          "unlikely-bb-count-fraction",
398          "The minimum fraction of profile runs a given basic block execution count must be not to be considered unlikely.",
399          20, 1, 10000)
400
401 DEFPARAM (PARAM_ALIGN_THRESHOLD,
402           "align-threshold",
403           "Select fraction of the maximal frequency of executions of basic block in function given basic block get alignment.",
404           100, 1, 0)
405
406 DEFPARAM (PARAM_ALIGN_LOOP_ITERATIONS,
407           "align-loop-iterations",
408           "Loops iterating at least selected number of iterations will get loop alignment..",
409           4, 0, 0)
410
411 /* For guessed profiles, the loops having unknown number of iterations
412    are predicted to iterate relatively few (10) times at average.
413    For functions containing one loop with large known number of iterations
414    and other loops having unbounded loops we would end up predicting all
415    the other loops cold that is not usually the case.  So we need to artificially
416    flatten the profile.
417
418    We need to cut the maximal predicted iterations to large enough iterations
419    so the loop appears important, but safely within maximum hotness
420    range.  */
421
422 DEFPARAM(PARAM_MAX_PREDICTED_ITERATIONS,
423          "max-predicted-iterations",
424          "The maximum number of loop iterations we predict statically.",
425          100, 0, 0)
426
427 /* This parameter controls the probability of builtin_expect. The default
428    value is 90%. This empirical value is obtained through the weighted
429    probability of FDO counters (with the FDO count value as the weight)
430    in some real world programs:
431    (1) Google performance test benchmarks: the probability is 0.9081.
432    (2) Linux 3.3 kernel running Google search workload: the probability
433    is 0.8717.  */
434
435 DEFPARAM(BUILTIN_EXPECT_PROBABILITY,
436          "builtin-expect-probability",
437          "Set the estimated probability in percentage for builtin expect. The default value is 90% probability.",
438          90, 0, 100)
439 DEFPARAM(TRACER_DYNAMIC_COVERAGE_FEEDBACK,
440          "tracer-dynamic-coverage-feedback",
441          "The percentage of function, weighted by execution frequency, that must be covered by trace formation. Used when profile feedback is available.",
442          95, 0, 100)
443 DEFPARAM(TRACER_DYNAMIC_COVERAGE,
444          "tracer-dynamic-coverage",
445          "The percentage of function, weighted by execution frequency, that must be covered by trace formation. Used when profile feedback is not available.",
446          75, 0, 100)
447 DEFPARAM(TRACER_MAX_CODE_GROWTH,
448          "tracer-max-code-growth",
449          "Maximal code growth caused by tail duplication (in percent).",
450          100, 0, 0)
451 DEFPARAM(TRACER_MIN_BRANCH_RATIO,
452          "tracer-min-branch-ratio",
453          "Stop reverse growth if the reverse probability of best edge is less than this threshold (in percent).",
454          10, 0, 100)
455 DEFPARAM(TRACER_MIN_BRANCH_PROBABILITY_FEEDBACK,
456          "tracer-min-branch-probability-feedback",
457          "Stop forward growth if the probability of best edge is less than this threshold (in percent). Used when profile feedback is available.",
458          80, 0, 100)
459 DEFPARAM(TRACER_MIN_BRANCH_PROBABILITY,
460          "tracer-min-branch-probability",
461          "Stop forward growth if the probability of best edge is less than this threshold (in percent). Used when profile feedback is not available.",
462          50, 0, 100)
463
464 /* The maximum number of incoming edges to consider for crossjumping.  */
465 DEFPARAM(PARAM_MAX_CROSSJUMP_EDGES,
466          "max-crossjump-edges",
467          "The maximum number of incoming edges to consider for crossjumping.",
468          100, 0, 0)
469
470 /* The minimum number of matching instructions to consider for crossjumping.  */
471 DEFPARAM(PARAM_MIN_CROSSJUMP_INSNS,
472      "min-crossjump-insns",
473      "The minimum number of matching instructions to consider for crossjumping.",
474      5, 1, 0)
475
476 /* The maximum number expansion factor when copying basic blocks.  */
477 DEFPARAM(PARAM_MAX_GROW_COPY_BB_INSNS,
478      "max-grow-copy-bb-insns",
479      "The maximum expansion factor when copying basic blocks.",
480      8, 0, 0)
481
482 /* The maximum number of insns to duplicate when unfactoring computed gotos.  */
483 DEFPARAM(PARAM_MAX_GOTO_DUPLICATION_INSNS,
484      "max-goto-duplication-insns",
485      "The maximum number of insns to duplicate when unfactoring computed gotos.",
486      8, 0, 0)
487
488 /* The maximum length of path considered in cse.  */
489 DEFPARAM(PARAM_MAX_CSE_PATH_LENGTH,
490          "max-cse-path-length",
491          "The maximum length of path considered in cse.",
492          10, 1, 0)
493 DEFPARAM(PARAM_MAX_CSE_INSNS,
494          "max-cse-insns",
495          "The maximum instructions CSE process before flushing.",
496          1000, 0, 0)
497
498 /* The cost of expression in loop invariant motion that is considered
499    expensive.  */
500 DEFPARAM(PARAM_LIM_EXPENSIVE,
501          "lim-expensive",
502          "The minimum cost of an expensive expression in the loop invariant motion.",
503          20, 0, 0)
504
505 /* Bound on number of candidates for induction variables below that
506    all candidates are considered for each use in induction variable
507    optimizations.  */
508
509 DEFPARAM(PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
510          "iv-consider-all-candidates-bound",
511          "Bound on number of candidates below that all candidates are considered in iv optimizations.",
512          40, 0, 0)
513
514 /* The induction variable optimizations give up on loops that contain more
515    induction variable uses.  */
516
517 DEFPARAM(PARAM_IV_MAX_CONSIDERED_USES,
518          "iv-max-considered-uses",
519          "Bound on number of iv uses in loop optimized in iv optimizations.",
520          250, 0, 0)
521
522 /* If there are at most this number of ivs in the set, try removing unnecessary
523    ivs from the set always.  */
524
525 DEFPARAM(PARAM_IV_ALWAYS_PRUNE_CAND_SET_BOUND,
526          "iv-always-prune-cand-set-bound",
527          "If number of candidates in the set is smaller, we always try to remove unused ivs during its optimization.",
528          10, 0, 0)
529
530 DEFPARAM(PARAM_AVG_LOOP_NITER,
531          "avg-loop-niter",
532          "Average number of iterations of a loop.",
533          10, 1, 0)
534
535 DEFPARAM(PARAM_DSE_MAX_OBJECT_SIZE,
536          "dse-max-object-size",
537          "Maximum size (in bytes) of objects tracked bytewise by dead store elimination.",
538          256, 0, 0)
539
540 DEFPARAM(PARAM_SCEV_MAX_EXPR_SIZE,
541          "scev-max-expr-size",
542          "Bound on size of expressions used in the scalar evolutions analyzer.",
543          100, 0, 0)
544
545 DEFPARAM(PARAM_SCEV_MAX_EXPR_COMPLEXITY,
546          "scev-max-expr-complexity",
547          "Bound on the complexity of the expressions in the scalar evolutions analyzer.",
548          10, 0, 0)
549
550 DEFPARAM (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS,
551           "max-tree-if-conversion-phi-args",
552           "Maximum number of arguments in a PHI supported by TREE if-conversion "
553           "unless the loop is marked with simd pragma.",
554           4, 2, 0)
555
556 DEFPARAM(PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS,
557          "vect-max-version-for-alignment-checks",
558          "Bound on number of runtime checks inserted by the vectorizer's loop versioning for alignment check.",
559          6, 0, 0)
560
561 DEFPARAM(PARAM_VECT_MAX_VERSION_FOR_ALIAS_CHECKS,
562          "vect-max-version-for-alias-checks",
563          "Bound on number of runtime checks inserted by the vectorizer's loop versioning for alias check.",
564          10, 0, 0)
565
566 DEFPARAM(PARAM_VECT_MAX_PEELING_FOR_ALIGNMENT,
567          "vect-max-peeling-for-alignment",
568          "Maximum number of loop peels to enhance alignment of data references in a loop.",
569          -1, -1, 64)
570
571 DEFPARAM(PARAM_MAX_CSELIB_MEMORY_LOCATIONS,
572          "max-cselib-memory-locations",
573          "The maximum memory locations recorded by cselib.",
574          500, 0, 0)
575
576 #ifdef ENABLE_GC_ALWAYS_COLLECT
577 # define GGC_MIN_EXPAND_DEFAULT 0
578 # define GGC_MIN_HEAPSIZE_DEFAULT 0
579 #else
580 # define GGC_MIN_EXPAND_DEFAULT 30
581 # define GGC_MIN_HEAPSIZE_DEFAULT 4096
582 #endif
583
584 DEFPARAM(GGC_MIN_EXPAND,
585          "ggc-min-expand",
586          "Minimum heap expansion to trigger garbage collection, as a percentage of the total size of the heap.",
587          GGC_MIN_EXPAND_DEFAULT, 0, 0)
588
589 DEFPARAM(GGC_MIN_HEAPSIZE,
590          "ggc-min-heapsize",
591          "Minimum heap size before we start collecting garbage, in kilobytes.",
592          GGC_MIN_HEAPSIZE_DEFAULT, 0, 0)
593
594 #undef GGC_MIN_EXPAND_DEFAULT
595 #undef GGC_MIN_HEAPSIZE_DEFAULT
596
597 DEFPARAM(PARAM_MAX_RELOAD_SEARCH_INSNS,
598          "max-reload-search-insns",
599          "The maximum number of instructions to search backward when looking for equivalent reload.",
600          100, 0, 0)
601
602 DEFPARAM(PARAM_SINK_FREQUENCY_THRESHOLD,
603          "sink-frequency-threshold",
604          "Target block's relative execution frequency (as a percentage) required to sink a statement.",
605          75, 0, 100)
606
607 DEFPARAM(PARAM_MAX_SCHED_REGION_BLOCKS,
608          "max-sched-region-blocks",
609          "The maximum number of blocks in a region to be considered for interblock scheduling.",
610          10, 0, 0)
611
612 DEFPARAM(PARAM_MAX_SCHED_REGION_INSNS,
613          "max-sched-region-insns",
614          "The maximum number of insns in a region to be considered for interblock scheduling.",
615          100, 0, 0)
616
617 DEFPARAM(PARAM_MAX_PIPELINE_REGION_BLOCKS,
618          "max-pipeline-region-blocks",
619          "The maximum number of blocks in a region to be considered for interblock scheduling.",
620          15, 0, 0)
621
622 DEFPARAM(PARAM_MAX_PIPELINE_REGION_INSNS,
623          "max-pipeline-region-insns",
624          "The maximum number of insns in a region to be considered for interblock scheduling.",
625          200, 0, 0)
626
627 DEFPARAM(PARAM_MIN_SPEC_PROB,
628          "min-spec-prob",
629          "The minimum probability of reaching a source block for interblock speculative scheduling.",
630          40, 0, 0)
631
632 DEFPARAM(PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS,
633          "max-sched-extend-regions-iters",
634          "The maximum number of iterations through CFG to extend regions.",
635          0, 0, 0)
636
637 DEFPARAM(PARAM_MAX_SCHED_INSN_CONFLICT_DELAY,
638          "max-sched-insn-conflict-delay",
639          "The maximum conflict delay for an insn to be considered for speculative motion.",
640          3, 1, 10)
641
642 DEFPARAM(PARAM_SCHED_SPEC_PROB_CUTOFF,
643          "sched-spec-prob-cutoff",
644          "The minimal probability of speculation success (in percents), so that speculative insn will be scheduled.",
645          40, 0, 100)
646
647 DEFPARAM(PARAM_SCHED_STATE_EDGE_PROB_CUTOFF,
648          "sched-state-edge-prob-cutoff",
649          "The minimum probability an edge must have for the scheduler to save its state across it.",
650          10, 0, 100)
651
652 DEFPARAM(PARAM_SELSCHED_MAX_LOOKAHEAD,
653          "selsched-max-lookahead",
654          "The maximum size of the lookahead window of selective scheduling.",
655          50, 0, 0)
656
657 DEFPARAM(PARAM_SELSCHED_MAX_SCHED_TIMES,
658          "selsched-max-sched-times",
659          "Maximum number of times that an insn could be scheduled.",
660          2, 1, 0)
661
662 DEFPARAM(PARAM_SELSCHED_INSNS_TO_RENAME,
663          "selsched-insns-to-rename",
664          "Maximum number of instructions in the ready list that are considered eligible for renaming.",
665          2, 0, 0)
666
667 DEFPARAM (PARAM_SCHED_MEM_TRUE_DEP_COST,
668           "sched-mem-true-dep-cost",
669           "Minimal distance between possibly conflicting store and load.",
670           1, 0, 0)
671
672 DEFPARAM (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH,
673           "sched-autopref-queue-depth",
674           "Hardware autoprefetcher scheduler model control flag.  Number of lookahead cycles the model looks into; at '0' only enable instruction sorting heuristic.  Disabled by default.",
675           -1, 0, 0)
676
677 DEFPARAM(PARAM_MAX_LAST_VALUE_RTL,
678          "max-last-value-rtl",
679          "The maximum number of RTL nodes that can be recorded as combiner's last value.",
680          10000, 0, 0)
681
682 DEFPARAM(PARAM_MAX_COMBINE_INSNS,
683          "max-combine-insns",
684          "The maximum number of insns combine tries to combine.",
685          4, 2, 4)
686
687 /* INTEGER_CST nodes are shared for values [{-1,0} .. N) for
688    {signed,unsigned} integral types.  This determines N.
689    Experimentation shows 251 to be a good value that generates the
690    least amount of garbage for allocating the TREE_VEC storage.  */
691 DEFPARAM (PARAM_INTEGER_SHARE_LIMIT,
692           "integer-share-limit",
693           "The upper bound for sharing integer constants.",
694           251, 2, 2)
695
696 DEFPARAM (PARAM_SSP_BUFFER_SIZE,
697           "ssp-buffer-size",
698           "The lower bound for a buffer to be considered for stack smashing protection.",
699           8, 1, 0)
700
701 DEFPARAM (PARAM_MIN_SIZE_FOR_STACK_SHARING,
702           "min-size-for-stack-sharing",
703           "The minimum size of variables taking part in stack slot sharing "
704           "when not optimizing.",
705           32, 0, 0)
706
707 /* When we thread through a block we have to make copies of the
708    statements within the block.  Clearly for large blocks the code
709    duplication is bad.
710
711    PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS specifies the maximum number
712    of statements and PHI nodes allowed in a block which is going to
713    be duplicated for thread jumping purposes.
714
715    Some simple analysis showed that more than 99% of the jump
716    threading opportunities are for blocks with less than 15
717    statements.  So we can get the benefits of jump threading
718    without excessive code bloat for pathological cases with the
719    throttle set at 15 statements.  */
720 DEFPARAM (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS,
721           "max-jump-thread-duplication-stmts",
722           "Maximum number of statements allowed in a block that needs to be duplicated when threading jumps.",
723           15, 0, 0)
724
725 /* This is the maximum number of fields a variable may have before the pointer analysis machinery
726    will stop trying to treat it in a field-sensitive manner.
727    There are programs out there with thousands of fields per structure, and handling them
728    field-sensitively is not worth the cost.  */
729 DEFPARAM (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE,
730           "max-fields-for-field-sensitive",
731           "Maximum number of fields in a structure before pointer analysis treats the structure as a single variable.",
732           0, 0, 0)
733
734 DEFPARAM(PARAM_MAX_SCHED_READY_INSNS,
735          "max-sched-ready-insns",
736          "The maximum number of instructions ready to be issued to be considered by the scheduler during the first scheduling pass.",
737          100, 0, 0)
738
739 /* This is the maximum number of active local stores RTL DSE will consider.  */
740 DEFPARAM (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES,
741           "max-dse-active-local-stores",
742           "Maximum number of active local stores in RTL dead store elimination.",
743           5000, 0, 0)
744
745 /* Prefetching and cache-optimizations related parameters.  Default values are
746    usually set by machine description.  */
747
748 /* The number of insns executed before prefetch is completed.  */
749
750 DEFPARAM (PARAM_PREFETCH_LATENCY,
751          "prefetch-latency",
752          "The number of insns executed before prefetch is completed.",
753          200, 0, 0)
754
755 /* The number of prefetches that can run at the same time.  */
756
757 DEFPARAM (PARAM_SIMULTANEOUS_PREFETCHES,
758           "simultaneous-prefetches",
759           "The number of prefetches that can run at the same time.",
760           3, 0, 0)
761
762 /* The size of L1 cache in kB.  */
763
764 DEFPARAM (PARAM_L1_CACHE_SIZE,
765           "l1-cache-size",
766           "The size of L1 cache.",
767           64, 0, 0)
768
769 /* The size of L1 cache line in bytes.  */
770
771 DEFPARAM (PARAM_L1_CACHE_LINE_SIZE,
772           "l1-cache-line-size",
773           "The size of L1 cache line.",
774           32, 0, 0)
775
776 /* The size of L2 cache in kB.  */
777
778 DEFPARAM (PARAM_L2_CACHE_SIZE,
779           "l2-cache-size",
780           "The size of L2 cache.",
781           512, 0, 0)
782
783 /* Whether we should use canonical types rather than deep "structural"
784    type checking.  Setting this value to 1 (the default) improves
785    compilation performance in the C++ and Objective-C++ front end;
786    this value should only be set to zero to work around bugs in the
787    canonical type system by disabling it.  */
788
789 DEFPARAM (PARAM_USE_CANONICAL_TYPES,
790           "use-canonical-types",
791           "Whether to use canonical types.",
792           1, 0, 1)
793
794 DEFPARAM (PARAM_MAX_PARTIAL_ANTIC_LENGTH,
795           "max-partial-antic-length",
796           "Maximum length of partial antic set when performing tree pre optimization.",
797           100, 0, 0)
798
799 /* The following is used as a stop-gap limit for cases where really huge
800    SCCs blow up memory and compile-time use too much.  If we hit this limit,
801    SCCVN and such FRE and PRE will be not done at all for the current
802    function.  */
803
804 DEFPARAM (PARAM_SCCVN_MAX_SCC_SIZE,
805           "sccvn-max-scc-size",
806           "Maximum size of a SCC before SCCVN stops processing a function.",
807           10000, 10, 0)
808
809 /* The following is used as a stop-gap limit for cases where really huge
810    functions blow up compile-time use too much.  It limits the number of
811    alias-queries we do for finding common subexpressions for memory loads and
812    stores.  The number of alias-queries is otherwise limited by the number of
813    stores on paths to function entry.  */
814
815 DEFPARAM (PARAM_SCCVN_MAX_ALIAS_QUERIES_PER_ACCESS,
816           "sccvn-max-alias-queries-per-access",
817           "Maximum number of disambiguations to perform per memory access.",
818           1000, 0, 0)
819
820 DEFPARAM (PARAM_IRA_MAX_LOOPS_NUM,
821           "ira-max-loops-num",
822           "Max loops number for regional RA.",
823           100, 0, 0)
824
825 DEFPARAM (PARAM_IRA_MAX_CONFLICT_TABLE_SIZE,
826           "ira-max-conflict-table-size",
827           "Max size of conflict table in MB.",
828           1000, 0, 0)
829
830 DEFPARAM (PARAM_IRA_LOOP_RESERVED_REGS,
831           "ira-loop-reserved-regs",
832           "The number of registers in each class kept unused by loop invariant motion.",
833           2, 0, 0)
834
835 DEFPARAM (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS,
836           "lra-max-considered-reload-pseudos",
837           "The max number of reload pseudos which are considered during spilling a non-reload pseudo.",
838           500, 0, 0)
839
840 DEFPARAM (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF,
841           "lra-inheritance-ebb-probability-cutoff",
842           "Minimal fall-through edge probability in percentage used to add BB to inheritance EBB in LRA.",
843           40, 0, 100)
844
845 /* Switch initialization conversion will refuse to create arrays that are
846    bigger than this parameter times the number of switch branches.  */
847
848 DEFPARAM (PARAM_SWITCH_CONVERSION_BRANCH_RATIO,
849           "switch-conversion-max-branch-ratio",
850           "The maximum ratio between array size and switch branches for "
851           "a switch conversion to take place.",
852           8, 1, 0)
853
854 /* Size of tiles when doing loop blocking.  */
855
856 DEFPARAM (PARAM_LOOP_BLOCK_TILE_SIZE,
857           "loop-block-tile-size",
858           "size of tiles for loop blocking.",
859           51, 0, 0)
860
861 /* Maximal number of parameters that we allow in a SCoP.  */
862
863 DEFPARAM (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS,
864           "graphite-max-nb-scop-params",
865           "maximum number of parameters in a SCoP.",
866           7, 0, 0)
867
868 /* Maximal number of basic blocks in the functions analyzed by Graphite.  */
869
870 DEFPARAM (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION,
871           "graphite-max-bbs-per-function",
872           "maximum number of basic blocks per function to be analyzed by Graphite.",
873           100, 0, 0)
874
875 /* Maximal number of array references in a scop.  */
876
877 DEFPARAM (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP,
878           "graphite-max-arrays-per-scop",
879           "maximum number of arrays per scop.",
880           100, 0, 0)
881
882 /* Maximal number of basic blocks in the functions analyzed by Graphite.  */
883
884 DEFPARAM (PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION,
885           "graphite-min-loops-per-function",
886           "minimal number of loops per function to be analyzed by Graphite.",
887           2, 0, 0)
888
889 DEFPARAM (PARAM_MAX_ISL_OPERATIONS,
890           "max-isl-operations",
891           "maximum number of isl operations, 0 means unlimited",
892           350000, 0, 0)
893
894 /* Avoid data dependence analysis on very large loops.  */
895 DEFPARAM (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS,
896           "loop-max-datarefs-for-datadeps",
897           "Maximum number of datarefs in loop for building loop data dependencies.",
898           1000, 0, 0)
899
900 /* Avoid doing loop invariant motion on very large loops.  */
901
902 DEFPARAM (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP,
903           "loop-invariant-max-bbs-in-loop",
904           "Max basic blocks number in loop for loop invariant motion.",
905           10000, 0, 0)
906
907 /* When the parameter is 1, use the internal function id
908    to look up for profile data. Otherwise, use a more stable
909    external id based on assembler name and source location. */
910 DEFPARAM (PARAM_PROFILE_FUNC_INTERNAL_ID,
911          "profile-func-internal-id",
912          "use internal function id in profile lookup.",
913           0, 0, 1)
914
915 /* When the parameter is 1, track the most frequent N target
916    addresses in indirect-call profile. This disables
917    indirect_call_profiler_v2 which tracks single target.  */
918 DEFPARAM (PARAM_INDIR_CALL_TOPN_PROFILE,
919          "indir-call-topn-profile",
920          "track topn target addresses in indirect-call profile.",
921           0, 0, 1)
922
923 /* Avoid SLP vectorization of large basic blocks.  */
924 DEFPARAM (PARAM_SLP_MAX_INSNS_IN_BB,
925           "slp-max-insns-in-bb",
926           "Maximum number of instructions in basic block to be considered for SLP vectorization.",
927           1000, 0, 0)
928
929 DEFPARAM (PARAM_MIN_INSN_TO_PREFETCH_RATIO,
930           "min-insn-to-prefetch-ratio",
931           "Min. ratio of insns to prefetches to enable prefetching for "
932           "a loop with an unknown trip count.",
933           9, 0, 0)
934
935 DEFPARAM (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO,
936           "prefetch-min-insn-to-mem-ratio",
937           "Min. ratio of insns to mem ops to enable prefetching in a loop.",
938           3, 0, 0)
939
940 /* Set maximum hash table size for var tracking.  */
941
942 DEFPARAM (PARAM_MAX_VARTRACK_SIZE,
943           "max-vartrack-size",
944           "Max. size of var tracking hash tables.",
945           50000000, 0, 0)
946
947 /* Set maximum recursion depth for var tracking expression expansion
948    and resolution.  */
949
950 DEFPARAM (PARAM_MAX_VARTRACK_EXPR_DEPTH,
951           "max-vartrack-expr-depth",
952           "Max. recursion depth for expanding var tracking expressions.",
953           12, 0, 0)
954
955 /* Set maximum length of value location list for which var tracking
956    should add reverse operations.  */
957
958 DEFPARAM (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE,
959           "max-vartrack-reverse-op-size",
960           "Max. size of loc list for which reverse ops should be added.",
961           50, 0, 0)
962
963 /* Set minimum insn uid for non-debug insns.  */
964
965 DEFPARAM (PARAM_MIN_NONDEBUG_INSN_UID,
966           "min-nondebug-insn-uid",
967           "The minimum UID to be used for a nondebug insn.",
968           0, 0, 0)
969
970 DEFPARAM (PARAM_IPA_SRA_PTR_GROWTH_FACTOR,
971           "ipa-sra-ptr-growth-factor",
972           "Maximum allowed growth of size of new parameters ipa-sra replaces "
973           "a pointer to an aggregate with.",
974           2, 0, 0)
975
976 DEFPARAM (PARAM_TM_MAX_AGGREGATE_SIZE,
977           "tm-max-aggregate-size",
978           "Size in bytes after which thread-local aggregates should be "
979           "instrumented with the logging functions instead of save/restore "
980           "pairs.",
981           9, 0, 0)
982
983 DEFPARAM (PARAM_SRA_MAX_SCALARIZATION_SIZE_SPEED,
984           "sra-max-scalarization-size-Ospeed",
985           "Maximum size, in storage units, of an aggregate which should be "
986           "considered for scalarization when compiling for speed.",
987           0, 0, 0)
988
989 DEFPARAM (PARAM_SRA_MAX_SCALARIZATION_SIZE_SIZE,
990           "sra-max-scalarization-size-Osize",
991           "Maximum size, in storage units, of an aggregate which should be "
992           "considered for scalarization when compiling for size.",
993           0, 0, 0)
994
995 DEFPARAM (PARAM_IPA_CP_VALUE_LIST_SIZE,
996           "ipa-cp-value-list-size",
997           "Maximum size of a list of values associated with each parameter for "
998           "interprocedural constant propagation.",
999           8, 0, 0)
1000
1001 DEFPARAM (PARAM_IPA_CP_EVAL_THRESHOLD,
1002           "ipa-cp-eval-threshold",
1003           "Threshold ipa-cp opportunity evaluation that is still considered "
1004           "beneficial to clone..",
1005           500, 0, 0)
1006
1007 DEFPARAM (PARAM_IPA_CP_RECURSION_PENALTY,
1008           "ipa-cp-recursion-penalty",
1009           "Percentage penalty the recursive functions will receive when they "
1010           "are evaluated for cloning..",
1011           40, 0, 100)
1012
1013 DEFPARAM (PARAM_IPA_CP_SINGLE_CALL_PENALTY,
1014           "ipa-cp-single-call-penalty",
1015           "Percentage penalty functions containing a single call to another "
1016           "function will receive when they are evaluated for cloning..",
1017           15, 0, 100)
1018
1019 DEFPARAM (PARAM_IPA_MAX_AGG_ITEMS,
1020           "ipa-max-agg-items",
1021           "Maximum number of aggregate content items for a parameter in "
1022           "jump functions and lattices.",
1023           16, 0, 0)
1024
1025 DEFPARAM (PARAM_IPA_CP_LOOP_HINT_BONUS,
1026           "ipa-cp-loop-hint-bonus",
1027           "Compile-time bonus IPA-CP assigns to candidates which make loop "
1028           "bounds or strides known..",
1029           64, 0, 0)
1030
1031 DEFPARAM (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS,
1032           "ipa-cp-array-index-hint-bonus",
1033           "Compile-time bonus IPA-CP assigns to candidates which make an array "
1034           "index known..",
1035           48, 0, 0)
1036
1037 DEFPARAM (PARAM_IPA_MAX_AA_STEPS,
1038           "ipa-max-aa-steps",
1039           "Maximum number of statements that will be visited by IPA formal "
1040           "parameter analysis based on alias analysis in any given function.",
1041           25000, 0, 0)
1042
1043 /* WHOPR partitioning configuration.  */
1044
1045 DEFPARAM (PARAM_LTO_PARTITIONS,
1046           "lto-partitions",
1047           "Number of partitions the program should be split to.",
1048           32, 1, 0)
1049
1050 DEFPARAM (MIN_PARTITION_SIZE,
1051           "lto-min-partition",
1052           "Minimal size of a partition for LTO (in estimated instructions).",
1053           10000, 0, 0)
1054
1055 DEFPARAM (MAX_PARTITION_SIZE,
1056           "lto-max-partition",
1057           "Maximal size of a partition for LTO (in estimated instructions).",
1058           1000000, 0, INT_MAX)
1059
1060 /* Diagnostic parameters.  */
1061
1062 DEFPARAM (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP,
1063           "cxx-max-namespaces-for-diagnostic-help",
1064           "Maximum number of namespaces to search for alternatives when "
1065           "name lookup fails.",
1066           1000, 0, 0)
1067
1068 /* Maximum number of conditional store pairs that can be sunk.  */
1069 DEFPARAM (PARAM_MAX_STORES_TO_SINK,
1070           "max-stores-to-sink",
1071           "Maximum number of conditional store pairs that can be sunk.",
1072           2, 0, 0)
1073
1074 /* Override CASE_VALUES_THRESHOLD of when to switch from doing switch
1075    statements via if statements to using a table jump operation.  If the value
1076    is 0, the default CASE_VALUES_THRESHOLD will be used.  */
1077 DEFPARAM (PARAM_CASE_VALUES_THRESHOLD,
1078           "case-values-threshold",
1079           "The smallest number of different values for which it is best to "
1080           "use a jump-table instead of a tree of conditional branches, "
1081           "if 0, use the default for the machine.",
1082           0, 0, 0)
1083
1084 /* Data race flags for C++0x memory model compliance.  */
1085 DEFPARAM (PARAM_ALLOW_STORE_DATA_RACES,
1086           "allow-store-data-races",
1087           "Allow new data races on stores to be introduced.",
1088           0, 0, 1)
1089
1090 /* Reassociation width to be used by tree reassoc optimization.  */
1091 DEFPARAM (PARAM_TREE_REASSOC_WIDTH,
1092           "tree-reassoc-width",
1093           "Set the maximum number of instructions executed in parallel in "
1094           "reassociated tree. If 0, use the target dependent heuristic..",
1095           0, 0, 0)
1096
1097 DEFPARAM (PARAM_MAX_TAIL_MERGE_COMPARISONS,
1098           "max-tail-merge-comparisons",
1099           "Maximum amount of similar bbs to compare a bb with.",
1100           10, 0, 0)
1101
1102 DEFPARAM (PARAM_STORE_MERGING_ALLOW_UNALIGNED,
1103           "store-merging-allow-unaligned",
1104           "Allow the store merging pass to introduce unaligned stores "
1105           "if it is legal to do so.",
1106           1, 0, 1)
1107
1108 DEFPARAM (PARAM_MAX_STORES_TO_MERGE,
1109           "max-stores-to-merge",
1110           "Maximum number of constant stores to merge in the "
1111           "store merging pass.",
1112           64, 2, 0)
1113
1114 DEFPARAM (PARAM_MAX_TAIL_MERGE_ITERATIONS,
1115           "max-tail-merge-iterations",
1116           "Maximum amount of iterations of the pass over a function.",
1117           2, 0, 0)
1118
1119 /* Maximum number of strings for which strlen optimization pass will
1120    track string lenths.  */
1121 DEFPARAM (PARAM_MAX_TRACKED_STRLENS,
1122           "max-tracked-strlens",
1123           "Maximum number of strings for which strlen optimization pass will "
1124           "track string lengths.",
1125           10000, 0, 0)
1126
1127 /* Keep this in sync with the sched_pressure_algorithm enum.  */
1128 DEFPARAM (PARAM_SCHED_PRESSURE_ALGORITHM,
1129           "sched-pressure-algorithm",
1130           "Which -fsched-pressure algorithm to apply.",
1131           1, 1, 2)
1132
1133 /* Maximum length of candidate scans in straight-line strength reduction.  */
1134 DEFPARAM (PARAM_MAX_SLSR_CANDIDATE_SCAN,
1135           "max-slsr-cand-scan",
1136           "Maximum length of candidate scans for straight-line "
1137           "strength reduction.",
1138           50, 1, 999999)
1139
1140 DEFPARAM (PARAM_ASAN_STACK,
1141          "asan-stack",
1142          "Enable asan stack protection.",
1143          1, 0, 1)
1144
1145 DEFPARAM (PARAM_ASAN_PROTECT_ALLOCAS,
1146         "asan-instrument-allocas",
1147         "Enable asan allocas/VLAs protection.",
1148         1, 0, 1)
1149
1150 DEFPARAM (PARAM_ASAN_GLOBALS,
1151          "asan-globals",
1152          "Enable asan globals protection.",
1153          1, 0, 1)
1154
1155 DEFPARAM (PARAM_ASAN_INSTRUMENT_WRITES,
1156          "asan-instrument-writes",
1157          "Enable asan store operations protection.",
1158          1, 0, 1)
1159
1160 DEFPARAM (PARAM_ASAN_INSTRUMENT_READS,
1161          "asan-instrument-reads",
1162          "Enable asan load operations protection.",
1163          1, 0, 1)
1164
1165 DEFPARAM (PARAM_ASAN_MEMINTRIN,
1166          "asan-memintrin",
1167          "Enable asan builtin functions protection.",
1168          1, 0, 1)
1169
1170 DEFPARAM (PARAM_ASAN_USE_AFTER_RETURN,
1171          "asan-use-after-return",
1172          "Enable asan detection of use-after-return bugs.",
1173          1, 0, 1)
1174
1175 DEFPARAM (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD,
1176          "asan-instrumentation-with-call-threshold",
1177          "Use callbacks instead of inline code if number of accesses "
1178          "in function becomes greater or equal to this number.",
1179          7000, 0, INT_MAX)
1180
1181 DEFPARAM (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD,
1182          "use-after-scope-direct-emission-threshold",
1183          "Use direct poisoning/unpoisoning instructions for variables "
1184          "smaller or equal to this number.",
1185          256, 0, INT_MAX)
1186
1187 DEFPARAM (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS,
1188           "uninit-control-dep-attempts",
1189           "Maximum number of nested calls to search for control dependencies "
1190           "during uninitialized variable analysis.",
1191           1000, 1, 0)
1192
1193 DEFPARAM (PARAM_CHKP_MAX_CTOR_SIZE,
1194           "chkp-max-ctor-size",
1195           "Maximum number of statements to be included into a single static "
1196           "constructor generated by Pointer Bounds Checker.",
1197           5000, 100, 0)
1198
1199 DEFPARAM (PARAM_FSM_SCALE_PATH_STMTS,
1200           "fsm-scale-path-stmts",
1201           "Scale factor to apply to the number of statements in a threading path when comparing to the number of (scaled) blocks.",
1202           2, 1, 10)
1203
1204 DEFPARAM (PARAM_FSM_MAXIMUM_PHI_ARGUMENTS,
1205           "fsm-maximum-phi-arguments",
1206           "Maximum number of arguments a PHI may have before the FSM threader will not try to thread through its block.",
1207           100, 1, 999999)
1208
1209 DEFPARAM (PARAM_FSM_SCALE_PATH_BLOCKS,
1210           "fsm-scale-path-blocks",
1211           "Scale factor to apply to the number of blocks in a threading path when comparing to the number of (scaled) statements.",
1212           3, 1, 10)
1213
1214 DEFPARAM (PARAM_MAX_FSM_THREAD_PATH_INSNS,
1215           "max-fsm-thread-path-insns",
1216           "Maximum number of instructions to copy when duplicating blocks on a finite state automaton jump thread path.",
1217           100, 1, 999999)
1218
1219 DEFPARAM (PARAM_MAX_FSM_THREAD_LENGTH,
1220           "max-fsm-thread-length",
1221           "Maximum number of basic blocks on a finite state automaton jump thread path.",
1222           10, 1, 999999)
1223
1224 DEFPARAM (PARAM_MAX_FSM_THREAD_PATHS,
1225           "max-fsm-thread-paths",
1226           "Maximum number of new jump thread paths to create for a finite state automaton.",
1227           50, 1, 999999)
1228
1229 DEFPARAM (PARAM_PARLOOPS_CHUNK_SIZE,
1230           "parloops-chunk-size",
1231           "Chunk size of omp schedule for loops parallelized by parloops.",
1232           0, 0, 0)
1233
1234 DEFPARAMENUM5 (PARAM_PARLOOPS_SCHEDULE,
1235                "parloops-schedule",
1236                "Schedule type of omp schedule for loops parallelized by "
1237                "parloops (static, dynamic, guided, auto, runtime).",
1238                static,
1239                static, dynamic, guided, auto, runtime)
1240
1241 DEFPARAM (PARAM_MAX_SSA_NAME_QUERY_DEPTH,
1242           "max-ssa-name-query-depth",
1243           "Maximum recursion depth allowed when querying a property of an"
1244           " SSA name.",
1245           3, 1, 10)
1246
1247 DEFPARAM (PARAM_MAX_RTL_IF_CONVERSION_INSNS,
1248           "max-rtl-if-conversion-insns",
1249           "Maximum number of insns in a basic block to consider for RTL "
1250           "if-conversion.",
1251           10, 0, 99)
1252
1253 DEFPARAM (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST,
1254           "max-rtl-if-conversion-predictable-cost",
1255           "Maximum permissible cost for the sequence that would be "
1256           "generated by the RTL if-conversion pass for a branch that "
1257           "is considered predictable.",
1258           20, 0, 200)
1259
1260 DEFPARAM (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST,
1261           "max-rtl-if-conversion-unpredictable-cost",
1262           "Maximum permissible cost for the sequence that would be "
1263           "generated by the RTL if-conversion pass for a branch that "
1264           "is considered unpredictable.",
1265           40, 0, 200)
1266
1267 DEFPARAM (PARAM_HSA_GEN_DEBUG_STORES,
1268           "hsa-gen-debug-stores",
1269           "Level of hsa debug stores verbosity",
1270           0, 0, 1)
1271
1272 DEFPARAM (PARAM_MAX_SPECULATIVE_DEVIRT_MAYDEFS,
1273           "max-speculative-devirt-maydefs",
1274           "Maximum number of may-defs visited when devirtualizing "
1275           "speculatively", 50, 0, 0)
1276
1277 DEFPARAM (PARAM_MAX_VRP_SWITCH_ASSERTIONS,
1278           "max-vrp-switch-assertions",
1279           "Maximum number of assertions to add along the default "
1280           "edge of a switch statement during VRP",
1281           10, 0, 0)
1282
1283 DEFPARAM (PARAM_VECT_EPILOGUES_NOMASK,
1284           "vect-epilogues-nomask",
1285           "Enable loop epilogue vectorization using smaller vector size.",
1286           0, 0, 1)
1287
1288 /*
1289
1290 Local variables:
1291 mode:c
1292 End:
1293 */