public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <richard.guenther@gmail.com>
To: Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>,
	Andreas Krebbel <krebbel@linux.ibm.com>
Subject: Re: [PATCH] IBM Z: Free bbs in s390_loop_unroll_adjust
Date: Wed, 3 Nov 2021 09:16:52 +0100	[thread overview]
Message-ID: <CAFiYyc1R99rCkaj-Bc5VAcxdBvXg52_d3ehrCLNgzUH3_uKmjQ@mail.gmail.com> (raw)
In-Reply-To: <20211102173118.2373100-1-stefansf@linux.ibm.com>

On Tue, Nov 2, 2021 at 6:33 PM Stefan Schulze Frielinghaus via
Gcc-patches <gcc-patches@gcc.gnu.org> wrote:
>
> Bootstrapped and regtested on IBM Z.  Ok for mainline?

OK (obvious even).

Thanks,
Richard.

> gcc/ChangeLog:
>
>         * config/s390/s390.c (s390_loop_unroll_adjust): In case of early
>         exit free bbs.
> ---
>  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))
> --
> 2.31.1
>

      parent reply	other threads:[~2021-11-03 13:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-02 17:31 Stefan Schulze Frielinghaus
2021-11-03  7:19 ` Andreas Krebbel
2021-11-03  8:16 ` Richard Biener [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFiYyc1R99rCkaj-Bc5VAcxdBvXg52_d3ehrCLNgzUH3_uKmjQ@mail.gmail.com \
    --to=richard.guenther@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=krebbel@linux.ibm.com \
    --cc=stefansf@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).