cprop.c: Clean up hash table building.
authorSteven Bosscher <steven@gcc.gnu.org>
Thu, 31 Mar 2011 19:48:11 +0000 (19:48 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Thu, 31 Mar 2011 19:48:11 +0000 (19:48 +0000)
commit7d11cebe9a4c0ca58d956644027ab7d9b93b8157
tree355ea15bc07e30c6c45030f0172588be21b7b72a
parentb5ad7facf3504d711ba3390607ad3a22d8d2af7b
cprop.c: Clean up hash table building.

* cprop.c: Clean up hash table building.
(reg_avail_info): Remove.
(oprs_available_p): Remove.
(record_last_reg_set_info): Remove.
(record_last_set_info): Remove.
(reg_available_p): New function.
(gcse_constant_p): Do not treat unfolded conditions as constants.
(make_set_regs_unavailable): New function.
(hash_scan_set): Simplify with new reg_available_p.
(compute_hash_table_work): Traverse insns stream only once.
Do not compute reg_avail_info. Traverse insns in reverse order.
Record implicit sets after recording explicit sets from the block.

From-SVN: r171794
gcc/ChangeLog
gcc/cprop.c