==============================
=====================================
@@ -1,3 +1,8 @@
+2014-01-02 Felix Yang <fei.yang0953@gmail.com>
+
+ * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
+ is newly allocated.
+
2013-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
===================================================================
@@ -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. */