public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Philipp Tomsich <ptomsich@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/vendors/vrull/heads/slp-improvements)] Fix memory corruption when group_size is not a multiple of 4
Date: Tue, 28 Nov 2023 13:35:25 +0000 (GMT)	[thread overview]
Message-ID: <20231128133525.94737387543B@sourceware.org> (raw)

https://gcc.gnu.org/g:20a124742836d8a65f9ba9ec02c151087d1a134c

commit 20a124742836d8a65f9ba9ec02c151087d1a134c
Author: Manolis Tsamis <manolis.tsamis@vrull.eu>
Date:   Thu Nov 23 11:28:15 2023 +0100

    Fix memory corruption when group_size is not a multiple of 4
    
    Ref #342

Diff:
---
 gcc/tree-vect-slp.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc
index feaa9be9b59..267cc712595 100644
--- a/gcc/tree-vect-slp.cc
+++ b/gcc/tree-vect-slp.cc
@@ -1839,7 +1839,7 @@ try_rearrange_oprnd_info (vec<slp_oprnd_info> &oprnds_info, unsigned group_size)
   slp_oprnd_info oprnd_info;
 
   /* A more generalized version is WIP but this is generic enough anyway.  */
-  if (oprnds_info.length() != 2 || group_size < 4)
+  if (oprnds_info.length() != 2 || group_size % 4 != 0)
     return 0;
 
   FOR_EACH_VEC_ELT (oprnds_info, i, oprnd_info)

             reply	other threads:[~2023-11-28 13:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-28 13:35 Philipp Tomsich [this message]
2024-01-17 19:14 Philipp Tomsich
2024-01-23 20:57 Philipp Tomsich

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=20231128133525.94737387543B@sourceware.org \
    --to=ptomsich@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /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).