summaryrefslogtreecommitdiff
path: root/gcc/store-motion.c
diff options
context:
space:
mode:
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2009-12-24 12:28:52 +0000
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>2009-12-24 12:28:52 +0000
commit4689625cda0eaf51fde34c534853395478491619 (patch)
tree2252c44ff0db8f1300017a6a1c401bc22dbf2ccc /gcc/store-motion.c
parent89504fc1abe5cdd87f4ecec5a3be7ba718661149 (diff)
downloadgcc-4689625cda0eaf51fde34c534853395478491619.tar.gz
* store-motion.c (build_store_vectors): Clear regs_set_in_block at
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
Diffstat (limited to 'gcc/store-motion.c')
-rw-r--r--gcc/store-motion.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/store-motion.c b/gcc/store-motion.c
index 4878729eec0..ffccd220f5b 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))
{