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, 23 Jan 2024 20:57:36 +0000 (GMT) [thread overview] Message-ID: <20240123205736.A3ED83858428@sourceware.org> (raw) https://gcc.gnu.org/g:962f4ee487340f09823314783cc746a2c854c496 commit 962f4ee487340f09823314783cc746a2c854c496 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 7fe8c3550b3..68b745f8445 100644 --- a/gcc/tree-vect-slp.cc +++ b/gcc/tree-vect-slp.cc @@ -1827,7 +1827,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)
next reply other threads:[~2024-01-23 20:57 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-01-23 20:57 Philipp Tomsich [this message] -- strict thread matches above, loose matches on Subject: below -- 2024-01-17 19:14 Philipp Tomsich 2023-11-28 13:35 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=20240123205736.A3ED83858428@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: linkBe 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).