1 /* params.def - Run-time parameters.
2 Copyright (C) 2001-2019 Free Software Foundation, Inc.
3 Written by Mark Mitchell <mark@codesourcery.com>.
5 This file is part of GCC.
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
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
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/>. */
21 /* This file contains definitions for language-independent
22 parameters. The DEFPARAM macro takes 6 arguments:
24 - The enumeral corresponding to this parameter.
26 - The name that can be used to set this parameter using the
27 command-line option `--param <name>=<value>'.
29 - A help string explaining how the parameter is used.
31 - A default value for the parameter.
33 - The minimum acceptable value for the parameter.
35 - The maximum acceptable value for the parameter (if greater than
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.
43 Be sure to add an entry to invoke.texi summarizing the parameter. */
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.",
52 DEFPARAM (PARAM_INLINE_MIN_SPEEDUP,
54 "The minimal estimated speedup allowing inliner to ignore inline-insns-single and inline-insns-auto with -O3 and -Ofast.",
57 DEFPARAM (PARAM_INLINE_MIN_SPEEDUP_O2,
58 "inline-min-speedup-O2",
59 "The minimal estimated speedup allowing inliner to ignore inline-insns-single and inline-insns-auto.",
62 /* The single function inlining limit. This is the maximum size
63 of a function counted in internal gcc instructions (not in
64 real machine instructions) that is eligible for inlining
66 Only functions marked inline (or methods defined in the class
67 definition for C++) are affected by this.
68 There are more restrictions to inlining: If inlined functions
69 call other functions, the already inlined instructions are
70 counted and once the recursive inline limit (see
71 "max-inline-insns" parameter) is exceeded, the acceptable size
73 DEFPARAM (PARAM_MAX_INLINE_INSNS_SINGLE,
74 "max-inline-insns-single",
75 "The maximum number of instructions in a single function eligible for inlining with -O3 and -Ofast.",
78 DEFPARAM (PARAM_MAX_INLINE_INSNS_SINGLE_O2,
79 "max-inline-insns-single-O2",
80 "The maximum number of instructions in a single function eligible for inlining.",
83 /* The single function inlining limit for functions that are
84 inlined by virtue of -finline-functions (-O3).
85 This limit should be chosen to be below or equal to the limit
86 that is applied to functions marked inlined (or defined in the
87 class declaration in C++) given by the "max-inline-insns-single"
89 The default value is 30. */
90 DEFPARAM (PARAM_MAX_INLINE_INSNS_AUTO,
91 "max-inline-insns-auto",
92 "The maximum number of instructions when automatically inlining with -O3 and -Ofast.",
95 DEFPARAM (PARAM_MAX_INLINE_INSNS_AUTO_O2,
96 "max-inline-insns-auto-O2",
97 "The maximum number of instructions when automatically inlining.",
100 DEFPARAM (PARAM_MAX_INLINE_INSNS_SMALL,
101 "max-inline-insns-small",
102 "The maximum number of instructions when automatically inlining small functions.",
105 DEFPARAM (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
106 "inline-heuristics-hint-percent",
107 "The scale (in percents) applied to inline-insns-single and auto limits when heuristics hints that inlining is very profitable with -O3 and -Ofast.",
110 DEFPARAM (PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2,
111 "inline-heuristics-hint-percent-O2",
112 "The scale (in percents) applied to inline-insns-single and auto limits when heuristics hints that inlining is very profitable.",
115 DEFPARAM (PARAM_MAX_INLINE_INSNS_SIZE,
116 "max-inline-insns-size",
117 "The maximum number of instructions when inlining for size.",
120 DEFPARAM (PARAM_UNINLINED_FUNCTION_INSNS,
121 "uninlined-function-insns",
122 "Instruction accounted for function prologue, epilogue and other"
126 DEFPARAM (PARAM_UNINLINED_FUNCTION_TIME,
127 "uninlined-function-time",
128 "Time accounted for function prologue, epilogue and other"
132 DEFPARAM (PARAM_UNINLINED_FUNCTION_THUNK_INSNS,
133 "uninlined-thunk-insns",
134 "Instruction accounted for function thunk overhead.",
137 DEFPARAM (PARAM_UNINLINED_FUNCTION_THUNK_TIME,
138 "uninlined-thunk-time",
139 "Time accounted for function thunk overhead.",
142 DEFPARAM (PARAM_MAX_INLINE_INSNS_RECURSIVE,
143 "max-inline-insns-recursive",
144 "The maximum number of instructions inline function can grow to via recursive inlining.",
147 DEFPARAM (PARAM_MAX_INLINE_INSNS_RECURSIVE_AUTO,
148 "max-inline-insns-recursive-auto",
149 "The maximum number of instructions non-inline function can grow to via recursive inlining.",
152 DEFPARAM (PARAM_MAX_INLINE_RECURSIVE_DEPTH,
153 "max-inline-recursive-depth",
154 "The maximum depth of recursive inlining for inline functions.",
157 DEFPARAM (PARAM_MAX_INLINE_RECURSIVE_DEPTH_AUTO,
158 "max-inline-recursive-depth-auto",
159 "The maximum depth of recursive inlining for non-inline functions.",
162 DEFPARAM (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY,
163 "min-inline-recursive-probability",
164 "Inline recursively only when the probability of call being executed exceeds the parameter.",
167 /* Limit of iterations of early inliner. This basically bounds number of
168 nested indirect calls early inliner can resolve. Deeper chains are still
169 handled by late inlining. */
170 DEFPARAM (PARAM_EARLY_INLINER_MAX_ITERATIONS,
171 "max-early-inliner-iterations",
172 "The maximum number of nested indirect inlining performed by early inliner.",
175 /* Limit on probability of entry BB. */
176 DEFPARAM (PARAM_COMDAT_SHARING_PROBABILITY,
177 "comdat-sharing-probability",
178 "Probability that COMDAT function will be shared with different compilation unit.",
181 /* Limit on probability of entry BB. */
182 DEFPARAM (PARAM_PARTIAL_INLINING_ENTRY_PROBABILITY,
183 "partial-inlining-entry-probability",
184 "Maximum probability of the entry BB of split region (in percent relative to entry BB of the function) to make partial inlining happen.",
187 /* Limit the number of expansions created by the variable expansion
188 optimization to avoid register pressure. */
189 DEFPARAM (PARAM_MAX_VARIABLE_EXPANSIONS,
190 "max-variable-expansions-in-unroller",
191 "If -fvariable-expansion-in-unroller is used, the maximum number of times that an individual variable will be expanded during loop unrolling.",
194 /* Limit loop autovectorization to loops with large enough iteration count. */
195 DEFPARAM (PARAM_MIN_VECT_LOOP_BOUND,
196 "min-vect-loop-bound",
197 "If -ftree-vectorize is used, the minimal loop bound of a loop to be considered for vectorization.",
200 /* The maximum number of instructions to consider when looking for an
201 instruction to fill a delay slot. If more than this arbitrary
202 number of instructions is searched, the time savings from filling
203 the delay slot will be minimal so stop searching. Increasing
204 values mean more aggressive optimization, making the compile time
205 increase with probably small improvement in executable run time. */
206 DEFPARAM (PARAM_MAX_DELAY_SLOT_INSN_SEARCH,
207 "max-delay-slot-insn-search",
208 "The maximum number of instructions to consider to fill a delay slot.",
211 /* When trying to fill delay slots, the maximum number of instructions
212 to consider when searching for a block with valid live register
213 information. Increasing this arbitrarily chosen value means more
214 aggressive optimization, increasing the compile time. This
215 parameter should be removed when the delay slot code is rewritten
216 to maintain the control-flow graph. */
217 DEFPARAM(PARAM_MAX_DELAY_SLOT_LIVE_SEARCH,
218 "max-delay-slot-live-search",
219 "The maximum number of instructions to consider to find accurate live register information.",
222 /* This parameter limits the number of branch elements that the
223 scheduler will track anti-dependencies through without resetting
224 the tracking mechanism. Large functions with few calls or barriers
225 can generate lists containing many 1000's of dependencies. Generally
226 the compiler either uses all available memory, or runs for far too long. */
227 DEFPARAM(PARAM_MAX_PENDING_LIST_LENGTH,
228 "max-pending-list-length",
229 "The maximum length of scheduling's pending operations list.",
232 /* This parameter limits the number of backtracking attempts when using the
233 haifa scheduler for modulo scheduling. */
234 DEFPARAM(PARAM_MAX_MODULO_BACKTRACK_ATTEMPTS,
235 "max-modulo-backtrack-attempts",
236 "The maximum number of backtrack attempts the scheduler should make when modulo scheduling a loop.",
239 DEFPARAM(PARAM_LARGE_FUNCTION_INSNS,
240 "large-function-insns",
241 "The size of function body to be considered large.",
243 DEFPARAM(PARAM_LARGE_FUNCTION_GROWTH,
244 "large-function-growth",
245 "Maximal growth due to inlining of large function (in percent).",
247 DEFPARAM(PARAM_LARGE_UNIT_INSNS,
249 "The size of translation unit to be considered large.",
251 DEFPARAM(PARAM_INLINE_UNIT_GROWTH,
252 "inline-unit-growth",
253 "How much can given compilation unit grow because of the inlining (in percent).",
255 DEFPARAM(PARAM_IPCP_UNIT_GROWTH,
257 "How much can given compilation unit grow because of the interprocedural constant propagation (in percent).",
259 DEFPARAM(PARAM_EARLY_INLINING_INSNS,
260 "early-inlining-insns",
261 "Maximal estimated growth of function body caused by early inlining of single call with -O3 and -Ofast.",
263 DEFPARAM(PARAM_EARLY_INLINING_INSNS_O2,
264 "early-inlining-insns-O2",
265 "Maximal estimated growth of function body caused by early inlining of single call with -O1 and -O2.",
267 DEFPARAM(PARAM_LARGE_STACK_FRAME,
269 "The size of stack frame to be considered large.",
271 DEFPARAM(PARAM_STACK_FRAME_GROWTH,
272 "large-stack-frame-growth",
273 "Maximal stack frame growth due to inlining (in percent).",
276 /* Keep these up to date with those in configure.ac. */
277 DEFPARAM(PARAM_STACK_CLASH_PROTECTION_GUARD_SIZE,
278 "stack-clash-protection-guard-size",
279 "Size of the stack guard expressed as a power of two in bytes.",
282 DEFPARAM(PARAM_STACK_CLASH_PROTECTION_PROBE_INTERVAL,
283 "stack-clash-protection-probe-interval",
284 "Interval in which to probe the stack expressed as a power of two in bytes.",
287 /* The GCSE optimization will be disabled if it would require
288 significantly more memory than this value. */
289 DEFPARAM(PARAM_MAX_GCSE_MEMORY,
291 "The maximum amount of memory to be allocated by GCSE.",
292 128 * 1024 * 1024, 0, 0)
294 /* The GCSE optimization of an expression will avoided if the ratio of
295 insertions to deletions is greater than this value. */
296 DEFPARAM(PARAM_MAX_GCSE_INSERTION_RATIO,
297 "max-gcse-insertion-ratio",
298 "The maximum ratio of insertions to deletions of expressions in GCSE.",
301 /* This is the threshold ratio when to perform partial redundancy
302 elimination after reload. We perform partial redundancy elimination
303 when the following holds:
304 (Redundant load execution count)
305 ------------------------------- >= GCSE_AFTER_RELOAD_PARTIAL_FRACTION
306 (Added loads execution count) */
307 DEFPARAM(PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
308 "gcse-after-reload-partial-fraction",
309 "The threshold ratio for performing partial redundancy elimination after reload.",
311 /* This is the threshold ratio of the critical edges execution count compared to
312 the redundant loads execution count that permits performing the load
313 redundancy elimination in gcse after reload. */
314 DEFPARAM(PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION,
315 "gcse-after-reload-critical-fraction",
316 "The threshold ratio of critical edges execution count that permit performing redundancy elimination after reload.",
319 /* GCSE will use GCSE_COST_DISTANCE_RATION as a scaling factor
320 to calculate maximum distance for which an expression is allowed to move
321 from its rtx_cost. */
322 DEFPARAM(PARAM_GCSE_COST_DISTANCE_RATIO,
323 "gcse-cost-distance-ratio",
324 "Scaling factor in calculation of maximum distance an expression can be moved by GCSE optimizations.",
326 /* GCSE won't restrict distance for which an expression with rtx_cost greater
327 than COSTS_N_INSN(GCSE_UNRESTRICTED_COST) is allowed to move. */
328 DEFPARAM(PARAM_GCSE_UNRESTRICTED_COST,
329 "gcse-unrestricted-cost",
330 "Cost at which GCSE optimizations will not constraint the distance an expression can travel.",
333 /* How deep from a given basic block the dominator tree should be searched
334 for expressions to hoist to the block. The value of 0 will avoid limiting
336 DEFPARAM(PARAM_MAX_HOIST_DEPTH,
338 "Maximum depth of search in the dominator tree for expressions to hoist.",
342 /* When synthesizing expnonentiation by a real constant operations using square
343 roots, this controls how deep sqrt chains we are willing to generate. */
344 DEFPARAM(PARAM_MAX_POW_SQRT_DEPTH,
345 "max-pow-sqrt-depth",
346 "Maximum depth of sqrt chains to use when synthesizing exponentiation by a real constant.",
349 /* This parameter limits the number of insns in a loop that will be unrolled,
350 and by how much the loop is unrolled.
352 This limit should be at most half of the peeling limits: loop unroller
353 decides to not unroll loops that iterate fewer than 2*number of allowed
354 unrollings and thus we would have loops that are neither peeled or unrolled
356 DEFPARAM(PARAM_MAX_UNROLLED_INSNS,
357 "max-unrolled-insns",
358 "The maximum number of instructions to consider to unroll in a loop.",
360 /* This parameter limits how many times the loop is unrolled depending
361 on number of insns really executed in each iteration. */
362 DEFPARAM(PARAM_MAX_AVERAGE_UNROLLED_INSNS,
363 "max-average-unrolled-insns",
364 "The maximum number of instructions to consider to unroll in a loop on average.",
366 /* The maximum number of unrollings of a single loop. */
367 DEFPARAM(PARAM_MAX_UNROLL_TIMES,
369 "The maximum number of unrollings of a single loop.",
371 /* The maximum number of insns of a peeled loop. */
372 DEFPARAM(PARAM_MAX_PEELED_INSNS,
374 "The maximum number of insns of a peeled loop.",
376 /* The maximum number of peelings of a single loop. */
377 DEFPARAM(PARAM_MAX_PEEL_TIMES,
379 "The maximum number of peelings of a single loop.",
381 /* The maximum number of peelings of a single loop that is peeled completely. */
382 DEFPARAM(PARAM_MAX_PEEL_BRANCHES,
384 "The maximum number of branches on the path through the peeled sequence.",
386 /* The maximum number of insns of a peeled loop. */
387 DEFPARAM(PARAM_MAX_COMPLETELY_PEELED_INSNS,
388 "max-completely-peeled-insns",
389 "The maximum number of insns of a completely peeled loop.",
391 /* The maximum number of peelings of a single loop that is peeled completely. */
392 DEFPARAM(PARAM_MAX_COMPLETELY_PEEL_TIMES,
393 "max-completely-peel-times",
394 "The maximum number of peelings of a single loop that is peeled completely.",
396 /* The maximum number of insns of a peeled loop that rolls only once. */
397 DEFPARAM(PARAM_MAX_ONCE_PEELED_INSNS,
398 "max-once-peeled-insns",
399 "The maximum number of insns of a peeled loop that rolls only once.",
401 /* The maximum depth of a loop nest we completely peel. */
402 DEFPARAM(PARAM_MAX_UNROLL_ITERATIONS,
403 "max-completely-peel-loop-nest-depth",
404 "The maximum depth of a loop nest we completely peel.",
407 /* The maximum number of insns of an unswitched loop. */
408 DEFPARAM(PARAM_MAX_UNSWITCH_INSNS,
409 "max-unswitch-insns",
410 "The maximum number of insns of an unswitched loop.",
412 /* The maximum level of recursion in unswitch_single_loop. */
413 DEFPARAM(PARAM_MAX_UNSWITCH_LEVEL,
414 "max-unswitch-level",
415 "The maximum number of unswitchings in a single loop.",
418 /* The maximum number of insns in loop header duplicated by the copy loop
420 DEFPARAM(PARAM_MAX_LOOP_HEADER_INSNS,
421 "max-loop-header-insns",
422 "The maximum number of insns in loop header duplicated by the copy loop headers pass.",
425 /* The maximum number of iterations of a loop the brute force algorithm
426 for analysis of # of iterations of the loop tries to evaluate. */
427 DEFPARAM(PARAM_MAX_ITERATIONS_TO_TRACK,
428 "max-iterations-to-track",
429 "Bound on the number of iterations the brute force # of iterations analysis algorithm evaluates.",
431 /* A cutoff to avoid costly computations of the number of iterations in
432 the doloop transformation. */
433 DEFPARAM(PARAM_MAX_ITERATIONS_COMPUTATION_COST,
434 "max-iterations-computation-cost",
435 "Bound on the cost of an expression to compute the number of iterations.",
438 /* This parameter is used to tune SMS MAX II calculations. */
439 DEFPARAM(PARAM_SMS_MAX_II_FACTOR,
441 "A factor for tuning the upper bound that swing modulo scheduler uses for scheduling a loop.",
443 /* The minimum value of stage count that swing modulo scheduler will generate. */
444 DEFPARAM(PARAM_SMS_MIN_SC,
446 "The minimum value of stage count that swing modulo scheduler will generate.",
448 DEFPARAM(PARAM_SMS_DFA_HISTORY,
450 "The number of cycles the swing modulo scheduler considers when checking conflicts using DFA.",
452 DEFPARAM(PARAM_SMS_LOOP_AVERAGE_COUNT_THRESHOLD,
453 "sms-loop-average-count-threshold",
454 "A threshold on the average loop count considered by the swing modulo scheduler.",
457 DEFPARAM(HOT_BB_COUNT_FRACTION,
458 "hot-bb-count-fraction",
459 "The denominator n of fraction 1/n of the maximal execution count of "
460 "a basic block in the entire program that a basic block needs to at "
461 "least have in order to be considered hot (used in non-LTO mode).",
464 DEFPARAM(HOT_BB_COUNT_WS_PERMILLE,
465 "hot-bb-count-ws-permille",
466 "The number of most executed permilles of the profiled execution of "
467 "the entire program to which the execution count of a basic block "
468 "must be part of in order to be considered hot (used in LTO mode).",
471 DEFPARAM(HOT_BB_FREQUENCY_FRACTION,
472 "hot-bb-frequency-fraction",
473 "The denominator n of fraction 1/n of the execution frequency of the "
474 "entry block of a function that a basic block of this function needs "
475 "to at least have in order to be considered hot.",
478 DEFPARAM(UNLIKELY_BB_COUNT_FRACTION,
479 "unlikely-bb-count-fraction",
480 "The denominator n of fraction 1/n of the number of profiled runs of "
481 "the entire program below which the execution count of a basic block "
482 "must be in order for the basic block to be considered unlikely.",
485 DEFPARAM (PARAM_ALIGN_THRESHOLD,
487 "Select fraction of the maximal frequency of executions of basic block in function given basic block get alignment.",
490 DEFPARAM (PARAM_ALIGN_LOOP_ITERATIONS,
491 "align-loop-iterations",
492 "Loops iterating at least selected number of iterations will get "
493 "loop alignment.", 4, 0, 0)
495 /* For guessed profiles, the loops having unknown number of iterations
496 are predicted to iterate relatively few (10) times at average.
497 For functions containing one loop with large known number of iterations
498 and other loops having unbounded loops we would end up predicting all
499 the other loops cold that is not usually the case. So we need to artificially
502 We need to cut the maximal predicted iterations to large enough iterations
503 so the loop appears important, but safely within maximum hotness
506 DEFPARAM(PARAM_MAX_PREDICTED_ITERATIONS,
507 "max-predicted-iterations",
508 "The maximum number of loop iterations we predict statically.",
511 /* This parameter controls the probability of builtin_expect. The default
512 value is 90%. This empirical value is obtained through the weighted
513 probability of FDO counters (with the FDO count value as the weight)
514 in some real world programs:
515 (1) Google performance test benchmarks: the probability is 0.9081.
516 (2) Linux 3.3 kernel running Google search workload: the probability
519 DEFPARAM(BUILTIN_EXPECT_PROBABILITY,
520 "builtin-expect-probability",
521 "Set the estimated probability in percentage for builtin expect. The default value is 90% probability.",
523 DEFPARAM(BUILTIN_STRING_CMP_INLINE_LENGTH,
524 "builtin-string-cmp-inline-length",
525 "The maximum length of a constant string for a builtin string cmp call eligible for inlining. The default value is 3.",
527 DEFPARAM(TRACER_DYNAMIC_COVERAGE_FEEDBACK,
528 "tracer-dynamic-coverage-feedback",
529 "The percentage of function, weighted by execution frequency, that must be covered by trace formation. Used when profile feedback is available.",
531 DEFPARAM(TRACER_DYNAMIC_COVERAGE,
532 "tracer-dynamic-coverage",
533 "The percentage of function, weighted by execution frequency, that must be covered by trace formation. Used when profile feedback is not available.",
535 DEFPARAM(TRACER_MAX_CODE_GROWTH,
536 "tracer-max-code-growth",
537 "Maximal code growth caused by tail duplication (in percent).",
539 DEFPARAM(TRACER_MIN_BRANCH_RATIO,
540 "tracer-min-branch-ratio",
541 "Stop reverse growth if the reverse probability of best edge is less than this threshold (in percent).",
543 DEFPARAM(TRACER_MIN_BRANCH_PROBABILITY_FEEDBACK,
544 "tracer-min-branch-probability-feedback",
545 "Stop forward growth if the probability of best edge is less than this threshold (in percent). Used when profile feedback is available.",
547 DEFPARAM(TRACER_MIN_BRANCH_PROBABILITY,
548 "tracer-min-branch-probability",
549 "Stop forward growth if the probability of best edge is less than this threshold (in percent). Used when profile feedback is not available.",
552 /* The maximum number of incoming edges to consider for crossjumping. */
553 DEFPARAM(PARAM_MAX_CROSSJUMP_EDGES,
554 "max-crossjump-edges",
555 "The maximum number of incoming edges to consider for crossjumping.",
558 /* The minimum number of matching instructions to consider for crossjumping. */
559 DEFPARAM(PARAM_MIN_CROSSJUMP_INSNS,
560 "min-crossjump-insns",
561 "The minimum number of matching instructions to consider for crossjumping.",
564 /* The maximum number expansion factor when copying basic blocks. */
565 DEFPARAM(PARAM_MAX_GROW_COPY_BB_INSNS,
566 "max-grow-copy-bb-insns",
567 "The maximum expansion factor when copying basic blocks.",
570 /* The maximum number of insns to duplicate when unfactoring computed gotos. */
571 DEFPARAM(PARAM_MAX_GOTO_DUPLICATION_INSNS,
572 "max-goto-duplication-insns",
573 "The maximum number of insns to duplicate when unfactoring computed gotos.",
576 /* The maximum length of path considered in cse. */
577 DEFPARAM(PARAM_MAX_CSE_PATH_LENGTH,
578 "max-cse-path-length",
579 "The maximum length of path considered in cse.",
581 DEFPARAM(PARAM_MAX_CSE_INSNS,
583 "The maximum instructions CSE process before flushing.",
586 /* The cost of expression in loop invariant motion that is considered
588 DEFPARAM(PARAM_LIM_EXPENSIVE,
590 "The minimum cost of an expensive expression in the loop invariant motion.",
593 /* Bound on number of candidates for induction variables below that
594 all candidates are considered for each use in induction variable
597 DEFPARAM(PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
598 "iv-consider-all-candidates-bound",
599 "Bound on number of candidates below that all candidates are considered in iv optimizations.",
602 /* The induction variable optimizations give up on loops that contain more
603 induction variable uses. */
605 DEFPARAM(PARAM_IV_MAX_CONSIDERED_USES,
606 "iv-max-considered-uses",
607 "Bound on number of iv uses in loop optimized in iv optimizations.",
610 /* If there are at most this number of ivs in the set, try removing unnecessary
611 ivs from the set always. */
613 DEFPARAM(PARAM_IV_ALWAYS_PRUNE_CAND_SET_BOUND,
614 "iv-always-prune-cand-set-bound",
615 "If number of candidates in the set is smaller, we always try to remove unused ivs during its optimization.",
618 DEFPARAM(PARAM_AVG_LOOP_NITER,
620 "Average number of iterations of a loop.",
623 DEFPARAM(PARAM_DSE_MAX_OBJECT_SIZE,
624 "dse-max-object-size",
625 "Maximum size (in bytes) of objects tracked bytewise by dead store elimination.",
628 DEFPARAM(PARAM_DSE_MAX_ALIAS_QUERIES_PER_STORE,
629 "dse-max-alias-queries-per-store",
630 "Maximum number of queries into the alias oracle per store.",
633 DEFPARAM(PARAM_SCEV_MAX_EXPR_SIZE,
634 "scev-max-expr-size",
635 "Bound on size of expressions used in the scalar evolutions analyzer.",
638 DEFPARAM(PARAM_SCEV_MAX_EXPR_COMPLEXITY,
639 "scev-max-expr-complexity",
640 "Bound on the complexity of the expressions in the scalar evolutions analyzer.",
643 DEFPARAM (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS,
644 "max-tree-if-conversion-phi-args",
645 "Maximum number of arguments in a PHI supported by TREE if-conversion "
646 "unless the loop is marked with simd pragma.",
649 DEFPARAM(PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS,
650 "vect-max-version-for-alignment-checks",
651 "Bound on number of runtime checks inserted by the vectorizer's loop versioning for alignment check.",
654 DEFPARAM(PARAM_VECT_MAX_VERSION_FOR_ALIAS_CHECKS,
655 "vect-max-version-for-alias-checks",
656 "Bound on number of runtime checks inserted by the vectorizer's loop versioning for alias check.",
659 DEFPARAM(PARAM_VECT_MAX_PEELING_FOR_ALIGNMENT,
660 "vect-max-peeling-for-alignment",
661 "Maximum number of loop peels to enhance alignment of data references in a loop.",
664 DEFPARAM(PARAM_MAX_CSELIB_MEMORY_LOCATIONS,
665 "max-cselib-memory-locations",
666 "The maximum memory locations recorded by cselib.",
669 #ifdef ENABLE_GC_ALWAYS_COLLECT
670 # define GGC_MIN_EXPAND_DEFAULT 0
671 # define GGC_MIN_HEAPSIZE_DEFAULT 0
673 # define GGC_MIN_EXPAND_DEFAULT 30
674 # define GGC_MIN_HEAPSIZE_DEFAULT 4096
677 DEFPARAM(GGC_MIN_EXPAND,
679 "Minimum heap expansion to trigger garbage collection, as a percentage of the total size of the heap.",
680 GGC_MIN_EXPAND_DEFAULT, 0, 0)
682 DEFPARAM(GGC_MIN_HEAPSIZE,
684 "Minimum heap size before we start collecting garbage, in kilobytes.",
685 GGC_MIN_HEAPSIZE_DEFAULT, 0, 0)
687 #undef GGC_MIN_EXPAND_DEFAULT
688 #undef GGC_MIN_HEAPSIZE_DEFAULT
690 DEFPARAM(PARAM_MAX_RELOAD_SEARCH_INSNS,
691 "max-reload-search-insns",
692 "The maximum number of instructions to search backward when looking for equivalent reload.",
695 DEFPARAM(PARAM_SINK_FREQUENCY_THRESHOLD,
696 "sink-frequency-threshold",
697 "Target block's relative execution frequency (as a percentage) required to sink a statement.",
700 DEFPARAM(PARAM_MAX_SCHED_REGION_BLOCKS,
701 "max-sched-region-blocks",
702 "The maximum number of blocks in a region to be considered for interblock scheduling.",
705 DEFPARAM(PARAM_MAX_SCHED_REGION_INSNS,
706 "max-sched-region-insns",
707 "The maximum number of insns in a region to be considered for interblock scheduling.",
710 DEFPARAM(PARAM_MAX_PIPELINE_REGION_BLOCKS,
711 "max-pipeline-region-blocks",
712 "The maximum number of blocks in a region to be considered for interblock scheduling.",
715 DEFPARAM(PARAM_MAX_PIPELINE_REGION_INSNS,
716 "max-pipeline-region-insns",
717 "The maximum number of insns in a region to be considered for interblock scheduling.",
720 DEFPARAM(PARAM_MIN_SPEC_PROB,
722 "The minimum probability of reaching a source block for interblock speculative scheduling.",
725 DEFPARAM(PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS,
726 "max-sched-extend-regions-iters",
727 "The maximum number of iterations through CFG to extend regions.",
730 DEFPARAM(PARAM_MAX_SCHED_INSN_CONFLICT_DELAY,
731 "max-sched-insn-conflict-delay",
732 "The maximum conflict delay for an insn to be considered for speculative motion.",
735 DEFPARAM(PARAM_SCHED_SPEC_PROB_CUTOFF,
736 "sched-spec-prob-cutoff",
737 "The minimal probability of speculation success (in percents), so that speculative insn will be scheduled.",
740 DEFPARAM(PARAM_SCHED_STATE_EDGE_PROB_CUTOFF,
741 "sched-state-edge-prob-cutoff",
742 "The minimum probability an edge must have for the scheduler to save its state across it.",
745 DEFPARAM(PARAM_SELSCHED_MAX_LOOKAHEAD,
746 "selsched-max-lookahead",
747 "The maximum size of the lookahead window of selective scheduling.",
750 DEFPARAM(PARAM_SELSCHED_MAX_SCHED_TIMES,
751 "selsched-max-sched-times",
752 "Maximum number of times that an insn could be scheduled.",
755 DEFPARAM(PARAM_SELSCHED_INSNS_TO_RENAME,
756 "selsched-insns-to-rename",
757 "Maximum number of instructions in the ready list that are considered eligible for renaming.",
760 DEFPARAM (PARAM_SCHED_MEM_TRUE_DEP_COST,
761 "sched-mem-true-dep-cost",
762 "Minimal distance between possibly conflicting store and load.",
765 DEFPARAM (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH,
766 "sched-autopref-queue-depth",
767 "Hardware autoprefetcher scheduler model control flag. Number of lookahead cycles the model looks into; at '0' only enable instruction sorting heuristic. Disabled by default.",
770 DEFPARAM(PARAM_MAX_LAST_VALUE_RTL,
771 "max-last-value-rtl",
772 "The maximum number of RTL nodes that can be recorded as combiner's last value.",
775 DEFPARAM(PARAM_MAX_COMBINE_INSNS,
777 "The maximum number of insns combine tries to combine.",
780 /* INTEGER_CST nodes are shared for values [{-1,0} .. N) for
781 {signed,unsigned} integral types. This determines N.
782 Experimentation shows 251 to be a good value that generates the
783 least amount of garbage for allocating the TREE_VEC storage. */
784 DEFPARAM (PARAM_INTEGER_SHARE_LIMIT,
785 "integer-share-limit",
786 "The upper bound for sharing integer constants.",
789 DEFPARAM (PARAM_SSP_BUFFER_SIZE,
791 "The lower bound for a buffer to be considered for stack smashing protection.",
794 DEFPARAM (PARAM_MIN_SIZE_FOR_STACK_SHARING,
795 "min-size-for-stack-sharing",
796 "The minimum size of variables taking part in stack slot sharing "
797 "when not optimizing.",
800 /* When we thread through a block we have to make copies of the
801 statements within the block. Clearly for large blocks the code
804 PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS specifies the maximum number
805 of statements and PHI nodes allowed in a block which is going to
806 be duplicated for thread jumping purposes.
808 Some simple analysis showed that more than 99% of the jump
809 threading opportunities are for blocks with less than 15
810 statements. So we can get the benefits of jump threading
811 without excessive code bloat for pathological cases with the
812 throttle set at 15 statements. */
813 DEFPARAM (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS,
814 "max-jump-thread-duplication-stmts",
815 "Maximum number of statements allowed in a block that needs to be duplicated when threading jumps.",
818 /* This is the maximum number of fields a variable may have before the pointer analysis machinery
819 will stop trying to treat it in a field-sensitive manner.
820 There are programs out there with thousands of fields per structure, and handling them
821 field-sensitively is not worth the cost. */
822 DEFPARAM (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE,
823 "max-fields-for-field-sensitive",
824 "Maximum number of fields in a structure before pointer analysis treats the structure as a single variable.",
827 DEFPARAM(PARAM_MAX_SCHED_READY_INSNS,
828 "max-sched-ready-insns",
829 "The maximum number of instructions ready to be issued to be considered by the scheduler during the first scheduling pass.",
832 /* This is the maximum number of active local stores RTL DSE will consider. */
833 DEFPARAM (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES,
834 "max-dse-active-local-stores",
835 "Maximum number of active local stores in RTL dead store elimination.",
838 /* Prefetching and cache-optimizations related parameters. Default values are
839 usually set by machine description. */
841 /* The number of insns executed before prefetch is completed. */
843 DEFPARAM (PARAM_PREFETCH_LATENCY,
845 "The number of insns executed before prefetch is completed.",
848 /* The number of prefetches that can run at the same time. */
850 DEFPARAM (PARAM_SIMULTANEOUS_PREFETCHES,
851 "simultaneous-prefetches",
852 "The number of prefetches that can run at the same time.",
855 /* The size of L1 cache in kB. */
857 DEFPARAM (PARAM_L1_CACHE_SIZE,
859 "The size of L1 cache.",
862 /* The size of L1 cache line in bytes. */
864 DEFPARAM (PARAM_L1_CACHE_LINE_SIZE,
865 "l1-cache-line-size",
866 "The size of L1 cache line.",
869 /* The size of L2 cache in kB. */
871 DEFPARAM (PARAM_L2_CACHE_SIZE,
873 "The size of L2 cache.",
876 /* Whether software prefetch hints should be issued for non-constant
879 DEFPARAM (PARAM_PREFETCH_DYNAMIC_STRIDES,
880 "prefetch-dynamic-strides",
881 "Whether software prefetch hints should be issued for non-constant "
885 /* The minimum constant stride beyond which we should use prefetch hints
888 DEFPARAM (PARAM_PREFETCH_MINIMUM_STRIDE,
889 "prefetch-minimum-stride",
890 "The minimum constant stride beyond which we should use prefetch "
894 /* Maximum number of statements in loop nest for loop interchange. */
896 DEFPARAM (PARAM_LOOP_INTERCHANGE_MAX_NUM_STMTS,
897 "loop-interchange-max-num-stmts",
898 "The maximum number of stmts in loop nest for loop interchange.",
901 /* Minimum stride ratio for loop interchange to be profitiable. */
903 DEFPARAM (PARAM_LOOP_INTERCHANGE_STRIDE_RATIO,
904 "loop-interchange-stride-ratio",
905 "The minimum stride ratio for loop interchange to be profitable.",
908 /* Whether we should use canonical types rather than deep "structural"
909 type checking. Setting this value to 1 (the default) improves
910 compilation performance in the C++ and Objective-C++ front end;
911 this value should only be set to zero to work around bugs in the
912 canonical type system by disabling it. */
914 DEFPARAM (PARAM_USE_CANONICAL_TYPES,
915 "use-canonical-types",
916 "Whether to use canonical types.",
919 DEFPARAM (PARAM_MAX_PARTIAL_ANTIC_LENGTH,
920 "max-partial-antic-length",
921 "Maximum length of partial antic set when performing tree pre optimization.",
924 /* The following is used as a stop-gap limit for cases where really deep
925 loop nests cause compile-time to blow up. If we hit this limit,
926 FRE and PRE will value-number outer loops (but the outermost) in a
927 loop nest non-optimistically. */
929 DEFPARAM (PARAM_RPO_VN_MAX_LOOP_DEPTH,
930 "rpo-vn-max-loop-depth",
931 "Maximum depth of a loop nest to fully value-number optimistically.",
934 /* The following is used as a stop-gap limit for cases where really huge
935 functions blow up compile-time use too much. It limits the number of
936 alias-queries we do for finding common subexpressions for memory loads and
937 stores. The number of alias-queries is otherwise limited by the number of
938 stores on paths to function entry. */
940 DEFPARAM (PARAM_SCCVN_MAX_ALIAS_QUERIES_PER_ACCESS,
941 "sccvn-max-alias-queries-per-access",
942 "Maximum number of disambiguations to perform per memory access.",
945 DEFPARAM (PARAM_IRA_MAX_LOOPS_NUM,
947 "Max loops number for regional RA.",
950 DEFPARAM (PARAM_IRA_MAX_CONFLICT_TABLE_SIZE,
951 "ira-max-conflict-table-size",
952 "Max size of conflict table in MB.",
955 DEFPARAM (PARAM_IRA_LOOP_RESERVED_REGS,
956 "ira-loop-reserved-regs",
957 "The number of registers in each class kept unused by loop invariant motion.",
960 DEFPARAM (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS,
961 "lra-max-considered-reload-pseudos",
962 "The max number of reload pseudos which are considered during spilling a non-reload pseudo.",
965 DEFPARAM (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF,
966 "lra-inheritance-ebb-probability-cutoff",
967 "Minimal fall-through edge probability in percentage used to add BB to inheritance EBB in LRA.",
970 /* Switch initialization conversion will refuse to create arrays that are
971 bigger than this parameter times the number of switch branches. */
973 DEFPARAM (PARAM_SWITCH_CONVERSION_BRANCH_RATIO,
974 "switch-conversion-max-branch-ratio",
975 "The maximum ratio between array size and switch branches for "
976 "a switch conversion to take place.",
979 /* Size of tiles when doing loop blocking. */
981 DEFPARAM (PARAM_LOOP_BLOCK_TILE_SIZE,
982 "loop-block-tile-size",
983 "Size of tiles for loop blocking.",
986 /* Maximal number of parameters that we allow in a SCoP. */
988 DEFPARAM (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS,
989 "graphite-max-nb-scop-params",
990 "Maximum number of parameters in a SCoP.",
993 /* Maximal number of array references in a scop. */
995 DEFPARAM (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP,
996 "graphite-max-arrays-per-scop",
997 "Maximum number of arrays per SCoP.",
1000 DEFPARAM (PARAM_MAX_ISL_OPERATIONS,
1001 "max-isl-operations",
1002 "Maximum number of isl operations, 0 means unlimited.",
1005 /* For testsuite purposes allow to check for codegen error handling. */
1006 DEFPARAM (PARAM_GRAPHITE_ALLOW_CODEGEN_ERRORS,
1007 "graphite-allow-codegen-errors",
1008 "Whether codegen errors should be ICEs when -fchecking.",
1011 /* Avoid data dependence analysis on very large loops. */
1012 DEFPARAM (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS,
1013 "loop-max-datarefs-for-datadeps",
1014 "Maximum number of datarefs in loop for building loop data dependencies.",
1017 /* Avoid doing loop invariant motion on very large loops. */
1019 DEFPARAM (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP,
1020 "loop-invariant-max-bbs-in-loop",
1021 "Max basic blocks number in loop for loop invariant motion.",
1024 /* When the parameter is 1, use the internal function id
1025 to look up for profile data. Otherwise, use a more stable
1026 external id based on assembler name and source location. */
1027 DEFPARAM (PARAM_PROFILE_FUNC_INTERNAL_ID,
1028 "profile-func-internal-id",
1029 "Use internal function id in profile lookup.",
1032 /* Avoid SLP vectorization of large basic blocks. */
1033 DEFPARAM (PARAM_SLP_MAX_INSNS_IN_BB,
1034 "slp-max-insns-in-bb",
1035 "Maximum number of instructions in basic block to be considered for "
1036 "SLP vectorization.", 1000, 0, 0)
1038 DEFPARAM (PARAM_MIN_INSN_TO_PREFETCH_RATIO,
1039 "min-insn-to-prefetch-ratio",
1040 "Min. ratio of insns to prefetches to enable prefetching for "
1041 "a loop with an unknown trip count.",
1044 DEFPARAM (PARAM_PREFETCH_MIN_INSN_TO_MEM_RATIO,
1045 "prefetch-min-insn-to-mem-ratio",
1046 "Min. ratio of insns to mem ops to enable prefetching in a loop.",
1049 /* Set maximum hash table size for var tracking. */
1051 DEFPARAM (PARAM_MAX_VARTRACK_SIZE,
1052 "max-vartrack-size",
1053 "Max. size of var tracking hash tables.",
1056 /* Set maximum recursion depth for var tracking expression expansion
1059 DEFPARAM (PARAM_MAX_VARTRACK_EXPR_DEPTH,
1060 "max-vartrack-expr-depth",
1061 "Max. recursion depth for expanding var tracking expressions.",
1064 /* Set maximum length of value location list for which var tracking
1065 should add reverse operations. */
1067 DEFPARAM (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE,
1068 "max-vartrack-reverse-op-size",
1069 "Max. size of loc list for which reverse ops should be added.",
1072 /* Set a threshold to discard debug markers (e.g. debug begin stmt
1073 markers) when expanding a function to RTL, or inlining it into
1074 another function. */
1076 DEFPARAM (PARAM_MAX_DEBUG_MARKER_COUNT,
1077 "max-debug-marker-count",
1078 "Max. count of debug markers to expand or inline.",
1081 /* Set minimum insn uid for non-debug insns. */
1083 DEFPARAM (PARAM_MIN_NONDEBUG_INSN_UID,
1084 "min-nondebug-insn-uid",
1085 "The minimum UID to be used for a nondebug insn.",
1088 DEFPARAM (PARAM_IPA_SRA_PTR_GROWTH_FACTOR,
1089 "ipa-sra-ptr-growth-factor",
1090 "Maximum allowed growth of number and total size of new parameters "
1091 "that ipa-sra replaces a pointer to an aggregate with.",
1094 DEFPARAM (PARAM_IPA_SRA_MAX_REPLACEMENTS,
1095 "ipa-sra-max-replacements",
1096 "Maximum pieces that IPA-SRA tracks per formal parameter, as "
1097 "a consequence, also the maximum number of replacements of a formal "
1101 DEFPARAM (PARAM_TM_MAX_AGGREGATE_SIZE,
1102 "tm-max-aggregate-size",
1103 "Size in bytes after which thread-local aggregates should be "
1104 "instrumented with the logging functions instead of save/restore "
1108 DEFPARAM (PARAM_SRA_MAX_SCALARIZATION_SIZE_SPEED,
1109 "sra-max-scalarization-size-Ospeed",
1110 "Maximum size, in storage units, of an aggregate which should be "
1111 "considered for scalarization when compiling for speed.",
1114 DEFPARAM (PARAM_SRA_MAX_SCALARIZATION_SIZE_SIZE,
1115 "sra-max-scalarization-size-Osize",
1116 "Maximum size, in storage units, of an aggregate which should be "
1117 "considered for scalarization when compiling for size.",
1120 DEFPARAM (PARAM_IPA_CP_VALUE_LIST_SIZE,
1121 "ipa-cp-value-list-size",
1122 "Maximum size of a list of values associated with each parameter for "
1123 "interprocedural constant propagation.",
1126 DEFPARAM (PARAM_IPA_CP_EVAL_THRESHOLD,
1127 "ipa-cp-eval-threshold",
1128 "Threshold ipa-cp opportunity evaluation that is still considered "
1129 "beneficial to clone.",
1132 DEFPARAM (PARAM_IPA_CP_RECURSION_PENALTY,
1133 "ipa-cp-recursion-penalty",
1134 "Percentage penalty the recursive functions will receive when they "
1135 "are evaluated for cloning.",
1138 DEFPARAM (PARAM_IPA_CP_SINGLE_CALL_PENALTY,
1139 "ipa-cp-single-call-penalty",
1140 "Percentage penalty functions containing a single call to another "
1141 "function will receive when they are evaluated for cloning.",
1144 DEFPARAM (PARAM_IPA_MAX_AGG_ITEMS,
1145 "ipa-max-agg-items",
1146 "Maximum number of aggregate content items for a parameter in "
1147 "jump functions and lattices.",
1150 DEFPARAM (PARAM_IPA_CP_LOOP_HINT_BONUS,
1151 "ipa-cp-loop-hint-bonus",
1152 "Compile-time bonus IPA-CP assigns to candidates which make loop "
1153 "bounds or strides known.",
1156 DEFPARAM (PARAM_IPA_MAX_AA_STEPS,
1158 "Maximum number of statements that will be visited by IPA formal "
1159 "parameter analysis based on alias analysis in any given function.",
1162 DEFPARAM (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS,
1163 "ipa-max-switch-predicate-bounds",
1164 "Maximal number of boundary endpoints of case ranges of switch "
1165 "statement used during IPA functoin summary generation.",
1168 DEFPARAM (PARAM_IPA_MAX_PARAM_EXPR_OPS,
1169 "ipa-max-param-expr-ops",
1170 "Maximum number of operations in a parameter expression that can "
1171 "be handled by IPA analysis.",
1174 /* WHOPR partitioning configuration. */
1176 DEFPARAM (PARAM_LTO_PARTITIONS,
1178 "Number of partitions the program should be split to.",
1181 DEFPARAM (MIN_PARTITION_SIZE,
1182 "lto-min-partition",
1183 "Minimal size of a partition for LTO (in estimated instructions).",
1186 DEFPARAM (MAX_PARTITION_SIZE,
1187 "lto-max-partition",
1188 "Maximal size of a partition for LTO (in estimated instructions).",
1189 1000000, 0, INT_MAX)
1191 DEFPARAM (PARAM_MAX_LTO_STREAMING_PARALLELISM,
1192 "lto-max-streaming-parallelism",
1193 "maximal number of LTO partitions streamed in parallel.",
1196 /* Diagnostic parameters. */
1198 DEFPARAM (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP,
1199 "cxx-max-namespaces-for-diagnostic-help",
1200 "Maximum number of namespaces to search for alternatives when "
1201 "name lookup fails.",
1204 /* Maximum number of conditional store pairs that can be sunk. */
1205 DEFPARAM (PARAM_MAX_STORES_TO_SINK,
1206 "max-stores-to-sink",
1207 "Maximum number of conditional store pairs that can be sunk.",
1210 /* Override CASE_VALUES_THRESHOLD of when to switch from doing switch
1211 statements via if statements to using a table jump operation. If the value
1212 is 0, the default CASE_VALUES_THRESHOLD will be used. */
1213 DEFPARAM (PARAM_CASE_VALUES_THRESHOLD,
1214 "case-values-threshold",
1215 "The smallest number of different values for which it is best to "
1216 "use a jump-table instead of a tree of conditional branches, "
1217 "if 0, use the default for the machine.",
1220 DEFPARAM (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE,
1221 "jump-table-max-growth-ratio-for-size",
1222 "The maximum code size growth ratio when expanding "
1223 "into a jump table (in percent). The parameter is used when "
1224 "optimizing for size.",
1227 DEFPARAM (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED,
1228 "jump-table-max-growth-ratio-for-speed",
1229 "The maximum code size growth ratio when expanding "
1230 "into a jump table (in percent). The parameter is used when "
1231 "optimizing for speed.",
1234 /* Reassociation width to be used by tree reassoc optimization. */
1235 DEFPARAM (PARAM_TREE_REASSOC_WIDTH,
1236 "tree-reassoc-width",
1237 "Set the maximum number of instructions executed in parallel in "
1238 "reassociated tree. If 0, use the target dependent heuristic.",
1241 DEFPARAM (PARAM_MAX_TAIL_MERGE_COMPARISONS,
1242 "max-tail-merge-comparisons",
1243 "Maximum amount of similar bbs to compare a bb with.",
1246 DEFPARAM (PARAM_STORE_MERGING_ALLOW_UNALIGNED,
1247 "store-merging-allow-unaligned",
1248 "Allow the store merging pass to introduce unaligned stores "
1249 "if it is legal to do so.",
1252 DEFPARAM (PARAM_MAX_STORES_TO_MERGE,
1253 "max-stores-to-merge",
1254 "Maximum number of constant stores to merge in the "
1255 "store merging pass.",
1258 DEFPARAM (PARAM_STORE_MERGING_MAX_SIZE,
1259 "store-merging-max-size",
1260 "Maximum size of a single store merging region in bytes.",
1263 DEFPARAM (PARAM_MAX_TAIL_MERGE_ITERATIONS,
1264 "max-tail-merge-iterations",
1265 "Maximum amount of iterations of the pass over a function.",
1268 /* Maximum number of strings for which strlen optimization pass will
1269 track string lenths. */
1270 DEFPARAM (PARAM_MAX_TRACKED_STRLENS,
1271 "max-tracked-strlens",
1272 "Maximum number of strings for which strlen optimization pass will "
1273 "track string lengths.",
1276 /* Keep this in sync with the sched_pressure_algorithm enum. */
1277 DEFPARAM (PARAM_SCHED_PRESSURE_ALGORITHM,
1278 "sched-pressure-algorithm",
1279 "Which -fsched-pressure algorithm to apply.",
1282 /* Maximum length of candidate scans in straight-line strength reduction. */
1283 DEFPARAM (PARAM_MAX_SLSR_CANDIDATE_SCAN,
1284 "max-slsr-cand-scan",
1285 "Maximum length of candidate scans for straight-line "
1286 "strength reduction.",
1289 /* ASan stands for AddressSanitizer: https://github.com/google/sanitizers. */
1291 DEFPARAM (PARAM_ASAN_STACK,
1293 "Enable asan stack protection.",
1296 DEFPARAM (PARAM_ASAN_PROTECT_ALLOCAS,
1297 "asan-instrument-allocas",
1298 "Enable asan allocas/VLAs protection.",
1301 DEFPARAM (PARAM_ASAN_GLOBALS,
1303 "Enable asan globals protection.",
1306 DEFPARAM (PARAM_ASAN_INSTRUMENT_WRITES,
1307 "asan-instrument-writes",
1308 "Enable asan store operations protection.",
1311 DEFPARAM (PARAM_ASAN_INSTRUMENT_READS,
1312 "asan-instrument-reads",
1313 "Enable asan load operations protection.",
1316 DEFPARAM (PARAM_ASAN_MEMINTRIN,
1318 "Enable asan builtin functions protection.",
1321 DEFPARAM (PARAM_ASAN_USE_AFTER_RETURN,
1322 "asan-use-after-return",
1323 "Enable asan detection of use-after-return bugs.",
1326 DEFPARAM (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD,
1327 "asan-instrumentation-with-call-threshold",
1328 "Use callbacks instead of inline code if number of accesses "
1329 "in function becomes greater or equal to this number.",
1332 DEFPARAM (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD,
1333 "use-after-scope-direct-emission-threshold",
1334 "Use direct poisoning/unpoisoning instructions for variables "
1335 "smaller or equal to this number.",
1338 DEFPARAM (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS,
1339 "uninit-control-dep-attempts",
1340 "Maximum number of nested calls to search for control dependencies "
1341 "during uninitialized variable analysis.",
1344 DEFPARAM (PARAM_FSM_SCALE_PATH_STMTS,
1345 "fsm-scale-path-stmts",
1346 "Scale factor to apply to the number of statements in a threading path when comparing to the number of (scaled) blocks.",
1349 DEFPARAM (PARAM_FSM_MAXIMUM_PHI_ARGUMENTS,
1350 "fsm-maximum-phi-arguments",
1351 "Maximum number of arguments a PHI may have before the FSM threader will not try to thread through its block.",
1354 DEFPARAM (PARAM_FSM_SCALE_PATH_BLOCKS,
1355 "fsm-scale-path-blocks",
1356 "Scale factor to apply to the number of blocks in a threading path when comparing to the number of (scaled) statements.",
1359 DEFPARAM (PARAM_MAX_FSM_THREAD_PATH_INSNS,
1360 "max-fsm-thread-path-insns",
1361 "Maximum number of instructions to copy when duplicating blocks on a finite state automaton jump thread path.",
1364 DEFPARAM (PARAM_MAX_FSM_THREAD_LENGTH,
1365 "max-fsm-thread-length",
1366 "Maximum number of basic blocks on a finite state automaton jump thread path.",
1369 DEFPARAM (PARAM_MAX_FSM_THREAD_PATHS,
1370 "max-fsm-thread-paths",
1371 "Maximum number of new jump thread paths to create for a finite state automaton.",
1374 DEFPARAM (PARAM_PARLOOPS_CHUNK_SIZE,
1375 "parloops-chunk-size",
1376 "Chunk size of omp schedule for loops parallelized by parloops.",
1379 DEFPARAMENUM5 (PARAM_PARLOOPS_SCHEDULE,
1380 "parloops-schedule",
1381 "Schedule type of omp schedule for loops parallelized by "
1382 "parloops (static, dynamic, guided, auto, runtime).",
1384 static, dynamic, guided, auto, runtime)
1386 DEFPARAM (PARAM_PARLOOPS_MIN_PER_THREAD,
1387 "parloops-min-per-thread",
1388 "Minimum number of iterations per thread of an innermost "
1389 "parallelized loop.",
1392 DEFPARAM (PARAM_MAX_SSA_NAME_QUERY_DEPTH,
1393 "max-ssa-name-query-depth",
1394 "Maximum recursion depth allowed when querying a property of an"
1398 DEFPARAM (PARAM_MAX_RTL_IF_CONVERSION_INSNS,
1399 "max-rtl-if-conversion-insns",
1400 "Maximum number of insns in a basic block to consider for RTL "
1404 DEFPARAM (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST,
1405 "max-rtl-if-conversion-predictable-cost",
1406 "Maximum permissible cost for the sequence that would be "
1407 "generated by the RTL if-conversion pass for a branch that "
1408 "is considered predictable.",
1411 DEFPARAM (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST,
1412 "max-rtl-if-conversion-unpredictable-cost",
1413 "Maximum permissible cost for the sequence that would be "
1414 "generated by the RTL if-conversion pass for a branch that "
1415 "is considered unpredictable.",
1418 DEFPARAM (PARAM_HSA_GEN_DEBUG_STORES,
1419 "hsa-gen-debug-stores",
1420 "Level of hsa debug stores verbosity.",
1423 DEFPARAM (PARAM_MAX_SPECULATIVE_DEVIRT_MAYDEFS,
1424 "max-speculative-devirt-maydefs",
1425 "Maximum number of may-defs visited when devirtualizing "
1426 "speculatively.", 50, 0, 0)
1428 DEFPARAM (PARAM_MAX_VRP_SWITCH_ASSERTIONS,
1429 "max-vrp-switch-assertions",
1430 "Maximum number of assertions to add along the default "
1431 "edge of a switch statement during VRP.",
1434 DEFPARAM (PARAM_VECT_EPILOGUES_NOMASK,
1435 "vect-epilogues-nomask",
1436 "Enable loop epilogue vectorization using smaller vector size.",
1439 DEFPARAM(PARAM_UNROLL_JAM_MIN_PERCENT,
1440 "unroll-jam-min-percent",
1441 "Minimum percentage of memrefs that must go away for unroll-and-jam to be considered profitable.",
1444 DEFPARAM(PARAM_UNROLL_JAM_MAX_UNROLL,
1445 "unroll-jam-max-unroll",
1446 "Maximum unroll factor for the unroll-and-jam transformation.",
1449 DEFPARAM(PARAM_AVOID_FMA_MAX_BITS,
1450 "avoid-fma-max-bits",
1451 "Maximum number of bits for which we avoid creating FMAs.",
1454 DEFPARAM(PARAM_LOGICAL_OP_NON_SHORT_CIRCUIT,
1455 "logical-op-non-short-circuit",
1456 "True if a non-short-circuit operation is optimal.",
1459 DEFPARAM(PARAM_LOOP_VERSIONING_MAX_INNER_INSNS,
1460 "loop-versioning-max-inner-insns",
1461 "The maximum number of instructions in an inner loop that is being"
1462 " considered for versioning.",
1465 DEFPARAM(PARAM_LOOP_VERSIONING_MAX_OUTER_INSNS,
1466 "loop-versioning-max-outer-insns",
1467 "The maximum number of instructions in an outer loop that is being"
1468 " considered for versioning, on top of the instructions in inner"
1472 DEFPARAM(PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD,
1473 "gimple-fe-computed-hot-bb-threshold",
1474 "The number of executions of a basic block which is considered hot."
1475 " The parameter is used only in GIMPLE FE.",
1478 DEFPARAM(PARAM_HASH_TABLE_VERIFICATION_LIMIT,
1479 "hash-table-verification-limit",
1480 "The number of elements for which hash table verification is done for "
1481 "each searched element.",
1484 DEFPARAM(PARAM_SSA_NAME_DEF_CHAIN_LIMIT,
1485 "ssa-name-def-chain-limit",
1486 "The maximum number of SSA_NAME assignments to follow in determining "