OSDN Git Service

PR optimization/12322
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Dec 2003 01:39:20 +0000 (01:39 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Dec 2003 01:39:20 +0000 (01:39 +0000)
commit6933395236ae08dad201096d3572e9a1fb29a0bc
tree9af4e807352e25d03e2723102e67712a53d561d9
parent341e6a1b1c322ec6818a6abfdac8a5234f713fa1
PR optimization/12322
* gcse.c (struct ls_expr): Change type of hash_index from int to
unsigned int.
(hash_expr): Document hash_table_size parameter and wrap long line.
(ldst_entry): Calculate expression's hash_index and record in ptr.
(trim_ld_motion_mems): Use hash_index to search a single bucket
instead of scanning the entire hash_table.  Remove the "del" local
variable and use the equivalent "expr == 0" instead.  Change last
to be a pointer to the pointer to the current element, to simplify
and speed-up deleting from a linked list.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74144 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gcse.c