From: Marek Polacek Date: Mon, 26 Nov 2012 16:38:32 +0000 (+0000) Subject: Remove redundant variable in hash_set. X-Git-Tag: releases/gcc-4.8.0~1778 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f460c170f063cacc7109395a8794de6cc362c87b;p=thirdparty%2Fgcc.git Remove redundant variable in hash_set. From-SVN: r193820 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1ff798fd254d..55c7df6ee4f6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-11-26 Marek Polacek + + * cprop.c (hash_set): Remove variable. Use regno + variable directly. + 2012-11-26 Eric Botcazou * tree.h (DECL_RESTRICTED_P): Delete. diff --git a/gcc/cprop.c b/gcc/cprop.c index 94852508be44..aa3054821bbc 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.