From b114d73a7bf4a3ddcc7088da11f842233aecac0a Mon Sep 17 00:00:00 2001 From: Steven Bosscher Date: Thu, 24 Dec 2009 12:28:52 +0000 Subject: 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 --- gcc/store-motion.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/store-motion.c') diff --git a/gcc/store-motion.c b/gcc/store-motion.c index 4878729..ffccd22 100644 --- a/gcc/store-motion.c +++ b/gcc/store-motion.c @@ -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)) { -- cgit v1.1