From 33444996f03b140e1fa144eb02c5c17d15e594a7 Mon Sep 17 00:00:00 2001 From: Felix Yang Date: Mon, 6 Jan 2014 16:46:12 +0000 Subject: [PATCH] modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it is newly allocated. 2014-01-02 Felix Yang * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it is newly allocated. From-SVN: r206366 --- gcc/ChangeLog | 5 +++++ gcc/modulo-sched.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0411962..5a3e25d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-01-02 Felix Yang + + * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it + is newly allocated. + 2014-01-06 Richard Earnshaw * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD. diff --git a/gcc/modulo-sched.c b/gcc/modulo-sched.c index 8d63e97..7ba3ddb 100644 --- a/gcc/modulo-sched.c +++ b/gcc/modulo-sched.c @@ -766,6 +766,9 @@ schedule_reg_moves (partial_schedule_ptr ps) distance1_uses = distances[1] ? sbitmap_alloc (g->num_nodes) : NULL; + if (distance1_uses) + bitmap_clear (distance1_uses); + /* Every use of the register defined by node may require a different copy of this register, depending on the time the use is scheduled. Record which uses require which move results. */ -- 2.7.4