From patchwork Mon Dec 12 06:20:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Revital Eres X-Patchwork-Id: 5587 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id CE90B23E0E for ; Mon, 12 Dec 2011 06:20:19 +0000 (UTC) Received: from mail-bw0-f52.google.com (mail-bw0-f52.google.com [209.85.214.52]) by fiordland.canonical.com (Postfix) with ESMTP id B9273A185DC for ; Mon, 12 Dec 2011 06:20:19 +0000 (UTC) Received: by bke17 with SMTP id 17so6742661bke.11 for ; Sun, 11 Dec 2011 22:20:19 -0800 (PST) Received: by 10.204.133.213 with SMTP id g21mr5434053bkt.126.1323670819309; Sun, 11 Dec 2011 22:20:19 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.129.2 with SMTP id hg2cs39130bkc; Sun, 11 Dec 2011 22:20:19 -0800 (PST) Received: by 10.50.36.225 with SMTP id t1mr13585557igj.92.1323670817069; Sun, 11 Dec 2011 22:20:17 -0800 (PST) Received: from mail-iy0-f178.google.com (mail-iy0-f178.google.com [209.85.210.178]) by mx.google.com with ESMTPS id r2si2252865ibj.51.2011.12.11.22.20.16 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 11 Dec 2011 22:20:17 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of revital.eres@linaro.org) client-ip=209.85.210.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of revital.eres@linaro.org) smtp.mail=revital.eres@linaro.org Received: by iagk10 with SMTP id k10so8221452iag.37 for ; Sun, 11 Dec 2011 22:20:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.179.7 with SMTP id dc7mr13501292igc.68.1323670816470; Sun, 11 Dec 2011 22:20:16 -0800 (PST) Received: by 10.50.159.135 with HTTP; Sun, 11 Dec 2011 22:20:16 -0800 (PST) Date: Mon, 12 Dec 2011 08:20:16 +0200 Message-ID: Subject: [PATCH, SMS] Add missing free operation in mark_loop_unsched From: Revital Eres To: Ayal Zaks Cc: gcc-patches@gcc.gnu.org, Patch Tracking Hello, The patch below adds a missing free operation in mark_loop_unsched. Tested (bootstrap and regtest) ppc64-redhat-linux. OK for 3.7? Thanks, Revital Changelog: * modulo-sched.c (mark_loop_unsched): Free bbs. Index: modulo-sched.c =================================================================== --- modulo-sched.c (revision 182198) +++ modulo-sched.c (working copy) @@ -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