aboutsummaryrefslogtreecommitdiff
path: root/gcc/cprop.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2012-11-26 16:38:32 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2012-11-26 16:38:32 +0000
commitf460c170f063cacc7109395a8794de6cc362c87b (patch)
treebb56c824ace2d30cda9712ef9268f7e5722701cc /gcc/cprop.c
parent8bed6809646c93b0f5d3b528942edd9e3dc89372 (diff)
downloadgcc-f460c170f063cacc7109395a8794de6cc362c87b.zip
gcc-f460c170f063cacc7109395a8794de6cc362c87b.tar.gz
gcc-f460c170f063cacc7109395a8794de6cc362c87b.tar.bz2
Remove redundant variable in hash_set.
From-SVN: r193820
Diffstat (limited to 'gcc/cprop.c')
-rw-r--r--gcc/cprop.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/cprop.c b/gcc/cprop.c
index 9485250..aa30548 100644
--- a/gcc/cprop.c
+++ b/gcc/cprop.c
@@ -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.