summaryrefslogtreecommitdiff
path: root/gcc/params.def
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/params.def')
-rw-r--r--gcc/params.def17
1 files changed, 14 insertions, 3 deletions
diff --git a/gcc/params.def b/gcc/params.def
index 7b9f97c69df..4fc74b5e6af 100644
--- a/gcc/params.def
+++ b/gcc/params.def
@@ -54,14 +54,25 @@ DEFPARAM (PARAM_SALIAS_MAX_IMPLICIT_FIELDS,
itself. */
DEFPARAM (PARAM_SRA_MAX_STRUCTURE_SIZE,
"sra-max-structure-size",
- "The maximum structure size (in bytes) at which GCC will do block copies",
+ "The maximum structure size (in bytes) for which GCC will "
+ "use by-element copies",
+ 0, 0, 0)
+
+/* The maximum number of structure fields which the SRA pass will
+ instantiate to avoid block copies. The default value, 0, implies
+ that GCC will select the appropriate value itself. */
+DEFPARAM (PARAM_SRA_MAX_STRUCTURE_COUNT,
+ "sra-max-structure-count",
+ "The maximum number of structure fields for which GCC will "
+ "use by-element copies",
0, 0, 0)
/* The ratio between instantiated fields and the complete structure
size. We say that if the ratio of the number of bytes in
instantiated fields to the number of bytes in the complete
- structure exceeds this parameter, then block copies are not used.
- The default is 75%. */
+ structure exceeds this parameter, or if the number of instantiated
+ fields to the total number of fields exceeds this parameter, then
+ block copies are not used. The default is 75%. */
DEFPARAM (PARAM_SRA_FIELD_STRUCTURE_RATIO,
"sra-field-structure-ratio",
"The threshold ratio between instantiated fields and the total structure size",