* [PATCH] IBM Z: Free bbs in s390_loop_unroll_adjust
@ 2021-11-02 17:31 Stefan Schulze Frielinghaus
2021-11-03 7:19 ` Andreas Krebbel
2021-11-03 8:16 ` Richard Biener
0 siblings, 2 replies; 3+ messages in thread
From: Stefan Schulze Frielinghaus @ 2021-11-02 17:31 UTC (permalink / raw)
To: gcc-patches, krebbel
Bootstrapped and regtested on IBM Z. Ok for mainline?
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] IBM Z: Free bbs in s390_loop_unroll_adjust
2021-11-02 17:31 [PATCH] IBM Z: Free bbs in s390_loop_unroll_adjust Stefan Schulze Frielinghaus
@ 2021-11-03 7:19 ` Andreas Krebbel
2021-11-03 8:16 ` Richard Biener
1 sibling, 0 replies; 3+ messages in thread
From: Andreas Krebbel @ 2021-11-03 7:19 UTC (permalink / raw)
To: Stefan Schulze Frielinghaus, gcc-patches
On 11/2/21 18:31, Stefan Schulze Frielinghaus wrote:
> Bootstrapped and regtested on IBM Z. Ok for mainline?
>
> gcc/ChangeLog:
>
> * config/s390/s390.c (s390_loop_unroll_adjust): In case of early
> exit free bbs.
Ok. Thanks!
Andreas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] IBM Z: Free bbs in s390_loop_unroll_adjust
2021-11-02 17:31 [PATCH] IBM Z: Free bbs in s390_loop_unroll_adjust Stefan Schulze Frielinghaus
2021-11-03 7:19 ` Andreas Krebbel
@ 2021-11-03 8:16 ` Richard Biener
1 sibling, 0 replies; 3+ messages in thread
From: Richard Biener @ 2021-11-03 8:16 UTC (permalink / raw)
To: Stefan Schulze Frielinghaus; +Cc: GCC Patches, Andreas Krebbel
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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-11-03 13:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-02 17:31 [PATCH] IBM Z: Free bbs in s390_loop_unroll_adjust Stefan Schulze Frielinghaus
2021-11-03 7:19 ` Andreas Krebbel
2021-11-03 8:16 ` Richard Biener
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).