params.def 43 KB

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