genpreds.c (write_lookup_constraint): Do not compare first letter of the constraint again.

2013-02-20  Richard Biener  <rguenther@suse.de>

	* genpreds.c (write_lookup_constraint): Do not compare first
	letter of the constraint again.

From-SVN: r196167
This commit is contained in:
Richard Biener 2013-02-20 09:04:29 +00:00 committed by Richard Biener
parent 79836a12e3
commit 71a86758d5
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-02-20 Richard Biener <rguenther@suse.de>
* genpreds.c (write_lookup_constraint): Do not compare first
letter of the constraint again.
2013-02-20 Richard Biener <rguenther@suse.de>
* tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits

View File

@ -945,9 +945,10 @@ write_lookup_constraint (void)
{
do
{
printf (" if (!strncmp (str, \"%s\", %lu))\n"
printf (" if (!strncmp (str + 1, \"%s\", %lu))\n"
" return CONSTRAINT_%s;\n",
c->name, (unsigned long int) c->namelen, c->c_name);
c->name + 1, (unsigned long int) c->namelen - 1,
c->c_name);
c = c->next_this_letter;
}
while (c);