Commit 71a86758 by Richard Biener Committed by Richard Biener

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
parent 79836a12
2013-02-20 Richard Biener <rguenther@suse.de> 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 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
and ceil_log2. and ceil_log2.
(get_use_iv_cost): Terminate hashtable walk when coming across (get_use_iv_cost): Terminate hashtable walk when coming across
......
...@@ -945,9 +945,10 @@ write_lookup_constraint (void) ...@@ -945,9 +945,10 @@ write_lookup_constraint (void)
{ {
do do
{ {
printf (" if (!strncmp (str, \"%s\", %lu))\n" printf (" if (!strncmp (str + 1, \"%s\", %lu))\n"
" return CONSTRAINT_%s;\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; c = c->next_this_letter;
} }
while (c); while (c);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment