* store-motion.c (build_store_vectors): Clear regs_set_in_block at
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Dec 2009 12:28:52 +0000 (12:28 +0000)
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Dec 2009 12:28:52 +0000 (12:28 +0000)
the start of a loop over basic blocks.

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

gcc/ChangeLog
gcc/store-motion.c

index f7583c2..f8b5fce 100644 (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>
 
index 4878729..ffccd22 100644 (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))
          {