re PR c/35002 (Incorrect spelling of "hottest")

2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>

	PR c/35002
	* ipa-struct-reorg.c: Fix spelling.
	* params.def: Ditto.

From-SVN: r131940
This commit is contained in:
Bernhard Fischer 2008-01-29 16:56:20 +01:00 committed by Bernhard Reutner-Fischer
parent 4f5c64b8ac
commit ea42975314
3 changed files with 15 additions and 9 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -3638,7 +3638,7 @@ collect_accesses_in_func (struct function *fn)
/* 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;
@ -3662,8 +3662,8 @@ sum_counts (d_str str, gcov_type *hotest)
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
@ -3903,18 +3903,18 @@ collect_data_accesses (void)
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)
{

View File

@ -83,14 +83,14 @@ DEFPARAM (PARAM_SRA_FIELD_STRUCTURE_RATIO,
"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