gcse.c (reg_clear_last_set): New function.
authorRichard Earnshaw <rearnsha@arm.com>
Wed, 3 Dec 2003 10:02:28 +0000 (10:02 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Wed, 3 Dec 2003 10:02:28 +0000 (10:02 +0000)
commit01c43039cf554b3943f4746651cbd8d757227a79
tree78a32ee85afcae7c521c74c580db1d4c919b5e2c
parent817fe804cf6c8c2c6e87058096c12e565ad5cf36
gcse.c (reg_clear_last_set): New function.

* gcse.c (reg_clear_last_set): New function.
(reg_set_info): If data is non-null, treat it as an sbitmap of
registers, set the bit for the register being set.
(compute_store_table): Allocate last_set_in with xcalloc.  Do not
memset this array on each iteration.  Pass reg_set_in_block[bb->index]
to note_stores while computing last_set_in instead of scanning
last_set_in after the first pass through the insns.
Clear last_set_in using reg_clear_last_set instead of explicitly
rescanning after each insn.  If checking is enabled, assert that
last_set_in is completely zeroed after each bb has been processed.

From-SVN: r74224
gcc/ChangeLog
gcc/gcse.c