store-motion.c (build_store_vectors): Clear regs_set_in_block at the start of a loop over basic blocks.

* store-motion.c (build_store_vectors): Clear regs_set_in_block at
	the start of a loop over basic blocks.

From-SVN: r155454
This commit is contained in:
Steven Bosscher 2009-12-24 12:28:52 +00:00
parent 0986ef456e
commit b114d73a7b
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-12-24 Steven Bosscher <steven@gcc.gnu.org>
* store-motion.c (build_store_vectors): Clear regs_set_in_block at
the start of a loop over basic blocks.
2009-12-24 Julian Brown <julian@codesourcery.com>
Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>

View File

@ -1067,6 +1067,8 @@ build_store_vectors (void)
FOR_EACH_BB (bb)
{
memset (regs_set_in_block, 0, sizeof (int) * max_gcse_regno);
FOR_BB_INSNS (bb, insn)
if (INSN_P (insn))
{