Commit f460c170 by Marek Polacek Committed by Marek Polacek

Remove redundant variable in hash_set.

From-SVN: r193820
parent 8bed6809
2012-11-26 Marek Polacek <polacek@redhat.com>
* cprop.c (hash_set): Remove variable. Use regno
variable directly.
2012-11-26 Eric Botcazou <ebotcazou@adacore.com> 2012-11-26 Eric Botcazou <ebotcazou@adacore.com>
* tree.h (DECL_RESTRICTED_P): Delete. * tree.h (DECL_RESTRICTED_P): Delete.
...@@ -170,10 +170,7 @@ reg_available_p (const_rtx x, const_rtx insn ATTRIBUTE_UNUSED) ...@@ -170,10 +170,7 @@ reg_available_p (const_rtx x, const_rtx insn ATTRIBUTE_UNUSED)
static unsigned int static unsigned int
hash_set (int regno, int hash_table_size) hash_set (int regno, int hash_table_size)
{ {
unsigned int hash; return (unsigned) regno % hash_table_size;
hash = regno;
return hash % hash_table_size;
} }
/* Insert assignment DEST:=SET from INSN in the hash table. /* Insert assignment DEST:=SET from INSN in the hash table.
......
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