Remove redundant variable in hash_set.
authorMarek Polacek <polacek@redhat.com>
Mon, 26 Nov 2012 16:38:32 +0000 (16:38 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 26 Nov 2012 16:38:32 +0000 (16:38 +0000)
From-SVN: r193820

gcc/ChangeLog
gcc/cprop.c

index 1ff798f..55c7df6 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * tree.h (DECL_RESTRICTED_P): Delete.
index 9485250..aa30548 100644 (file)
@@ -170,10 +170,7 @@ reg_available_p (const_rtx x, const_rtx insn ATTRIBUTE_UNUSED)
 static unsigned int
 hash_set (int regno, int hash_table_size)
 {
-  unsigned int hash;
-
-  hash = regno;
-  return hash % hash_table_size;
+  return (unsigned) regno % hash_table_size;
 }
 
 /* Insert assignment DEST:=SET from INSN in the hash table.