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