summaryrefslogtreecommitdiff
path: root/gcc/cprop.c
diff options
context:
space:
mode:
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-26 16:38:32 +0000
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-26 16:38:32 +0000
commit7c5db9528380f04ca9bb1f9fca257c38da2df12b (patch)
treebb56c824ace2d30cda9712ef9268f7e5722701cc /gcc/cprop.c
parent96cd09d2177283716462092c20384c717a6aaa03 (diff)
downloadgcc-7c5db9528380f04ca9bb1f9fca257c38da2df12b.tar.gz
Remove redundant variable in hash_set.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193820 138bc75d-0d04-0410-961f-82ee72b054a4
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 94852508be4..aa3054821bb 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.