This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, SMS] Avoid unfreed memory when SMS fails
- From: Revital Eres <revital dot eres at linaro dot org>
- To: zaks at il dot ibm dot com
- Cc: Patch Tracking <patches at linaro dot org>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 15 Apr 2011 18:26:07 +0300
- Subject: [PATCH, SMS] Avoid unfreed memory when SMS fails
Hello,
This patch fixes the scenario where SMS fails to
schedule a loop and continue to the next one without
freeing data structures allocated while scheduling
the first loop.
Bootstrap and regtested on ppc64-redhat-linux.
OK for mainline?
Thanks,
Revital
Changelog:
* modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
Index: modulo-sched.c
===================================================================
--- modulo-sched.c (revision 170464)
+++ modulo-sched.c (working copy)
@@ -1177,7 +1177,6 @@ sms_schedule (void)
fprintf (dump_file, HOST_WIDEST_INT_PRINT_DEC, trip_count);
fprintf (dump_file, ")\n");
}
- continue;
}
else
{