]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
SMS: Add missing free operation in mark_loop_unsched
authorRevital Eres <revital.eres@linaro.org>
Tue, 13 Dec 2011 05:41:45 +0000 (05:41 +0000)
committerRevital Eres <revitale@gcc.gnu.org>
Tue, 13 Dec 2011 05:41:45 +0000 (05:41 +0000)
From-SVN: r182271

gcc/ChangeLog
gcc/modulo-sched.c

index 6a7fedd04394a0c4edf0f8ac25ef79469827111e..efb530229810cf76b833636d6bc9f0d13ddafa49 100644 (file)
@@ -1,3 +1,7 @@
+2011-12-13  Revital Eres  <revital.eres@linaro.org>
+
+       * modulo-sched.c (mark_loop_unsched): Free bbs.
+
 2011-12-12  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/51495
index 0ea9a4d9a6281a416d3584e365b5955e470607a7..969b273208d9d237fc2e28231b60790a6ecae7c9 100644 (file)
@@ -1204,6 +1204,8 @@ mark_loop_unsched (struct loop *loop)
 
   for (i = 0; i < loop->num_nodes; i++)
     bbs[i]->flags |= BB_DISABLE_SCHEDULE;
+
+  free (bbs);
 }
 
 /* Return true if all the BBs of the loop are empty except the