+2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
+
+ PR c/35002
+ * ipa-struct-reorg.c: Fix spelling.
+ * params.def: Ditto.
+
2008-01-29 Richard Guenther <rguenther@suse.de>
PR middle-end/35006
/* This function summarizes counts of the fields into the structure count. */
static void
-sum_counts (d_str str, gcov_type *hotest)
+sum_counts (d_str str, gcov_type *hottest)
{
int i;
fprintf (dump_file, "\" is " HOST_WIDEST_INT_PRINT_DEC, str->count);
}
- if (str->count > *hotest)
- *hotest = str->count;
+ if (str->count > *hottest)
+ *hottest = str->count;
}
/* This function peels the field into separate structure if it's
static void
exclude_cold_structs (void)
{
- gcov_type hotest = 0;
+ gcov_type hottest = 0;
unsigned i;
d_str str;
/* We summarize counts of fields of a structure into the structure count. */
for (i = 0; VEC_iterate (structure, structures, i, str); i++)
- sum_counts (str, &hotest);
+ sum_counts (str, &hottest);
/* Remove cold structures from structures vector. */
i = 0;
while (VEC_iterate (structure, structures, i, str))
- if (str->count * 100 < (hotest * STRUCT_REORG_COLD_STRUCT_RATIO))
+ if (str->count * 100 < (hottest * STRUCT_REORG_COLD_STRUCT_RATIO))
{
if (dump_file)
{
"The threshold ratio between instantiated fields and the total structure size",
75, 0, 100)
-/* The threshold ratio between current and hotest structure counts.
+/* The threshold ratio between current and hottest structure counts.
We say that if the ratio of the current structure count,
- calculated by profiling, to the hotest structure count
+ calculated by profiling, to the hottest structure count
in the program is less than this parameter, then structure
reorganization is not applied. The default is 10%. */
DEFPARAM (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO,
"struct-reorg-cold-struct-ratio",
- "The threshold ratio between current and hotest structure counts",
+ "The threshold ratio between current and hottest structure counts",
10, 0, 100)
/* The single function inlining limit. This is the maximum size