i386.c (ix86_parse_stringop_strategy_string): Remove variable alg.

* config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove
	variable alg.  Use index variable i directly.

From-SVN: r206108
This commit is contained in:
Marek Polacek 2013-12-19 10:25:34 +00:00 committed by Marek Polacek
parent ef39eedf9b
commit 8409aed410
2 changed files with 8 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2013-12-19 Marek Polacek <polacek@redhat.com>
* config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove
variable alg. Use index variable i directly.
2013-12-19 Eric Botcazou <ebotcazou@adacore.com>
* print-tree.c (print_node) <case tcc_type>: Print no_force_blk_flag

View File

@ -2856,7 +2856,6 @@ ix86_parse_stringop_strategy_string (char *strategy_str, bool is_memset)
do
{
int maxs;
stringop_alg alg;
char alg_name[128];
char align[16];
next_range_str = strchr (curr_range_str, ',');
@ -2879,13 +2878,8 @@ ix86_parse_stringop_strategy_string (char *strategy_str, bool is_memset)
}
for (i = 0; i < last_alg; i++)
{
if (!strcmp (alg_name, stringop_alg_names[i]))
{
alg = (stringop_alg) i;
break;
}
}
if (!strcmp (alg_name, stringop_alg_names[i]))
break;
if (i == last_alg)
{
@ -2896,7 +2890,7 @@ ix86_parse_stringop_strategy_string (char *strategy_str, bool is_memset)
}
input_ranges[n].max = maxs;
input_ranges[n].alg = alg;
input_ranges[n].alg = (stringop_alg) i;
if (!strcmp (align, "align"))
input_ranges[n].noalign = false;
else if (!strcmp (align, "noalign"))