public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4858] IBM Z: Free bbs in s390_loop_unroll_adjust
@ 2021-11-03  8:40 Stefan Schulze Frielinghaus
  0 siblings, 0 replies; only message in thread
From: Stefan Schulze Frielinghaus @ 2021-11-03  8:40 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:ea2ab805acdd023f1c43302723c1fa1349be9cca

commit r12-4858-gea2ab805acdd023f1c43302723c1fa1349be9cca
Author: Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Date:   Wed Nov 3 09:39:27 2021 +0100

    IBM Z: Free bbs in s390_loop_unroll_adjust
    
    gcc/ChangeLog:
    
            * config/s390/s390.c (s390_loop_unroll_adjust): In case of early
            exit free bbs.

Diff:
---
 gcc/config/s390/s390.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c
index b2f2f6417b3..510e7f58a3b 100644
--- a/gcc/config/s390/s390.c
+++ b/gcc/config/s390/s390.c
@@ -15400,7 +15400,10 @@ s390_loop_unroll_adjust (unsigned nunroll, struct loop *loop)
 		  || (GET_CODE (SET_SRC (set)) == COMPARE
 		      && GET_MODE (XEXP (SET_SRC (set), 0)) == BLKmode
 		      && GET_MODE (XEXP (SET_SRC (set), 1)) == BLKmode)))
-	    return 1;
+	    {
+	      free (bbs);
+	      return 1;
+	    }
 
 	  FOR_EACH_SUBRTX (iter, array, PATTERN (insn), NONCONST)
 	    if (MEM_P (*iter))


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-03  8:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-03  8:40 [gcc r12-4858] IBM Z: Free bbs in s390_loop_unroll_adjust Stefan Schulze Frielinghaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).