[Bug optimization/12322] [3.4 Regression] [gcse-lm] Significant slowdown when compiling computed-goto code in Parrot, GCSE is slower
cvs-commit at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Dec 2 01:39:00 GMT 2003
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-12-02 01:39 -------
Subject: Bug 12322
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: sayle@gcc.gnu.org 2003-12-02 01:39:20
Modified files:
gcc : ChangeLog gcse.c
Log message:
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.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1887&r2=2.1888
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcse.c.diff?cvsroot=gcc&r1=1.278&r2=1.279
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12322
More information about the Gcc-bugs
mailing list