public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/vrull/heads/slp-improvements)] Fix memory corruption when group_size is not a multiple of 4
@ 2023-11-28 13:35 Philipp Tomsich
0 siblings, 0 replies; 3+ messages in thread
From: Philipp Tomsich @ 2023-11-28 13:35 UTC (permalink / raw)
To: gcc-cvs
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gcc(refs/vendors/vrull/heads/slp-improvements)] Fix memory corruption when group_size is not a multiple of 4
@ 2024-01-23 20:57 Philipp Tomsich
0 siblings, 0 replies; 3+ messages in thread
From: Philipp Tomsich @ 2024-01-23 20:57 UTC (permalink / raw)
To: gcc-cvs
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gcc(refs/vendors/vrull/heads/slp-improvements)] Fix memory corruption when group_size is not a multiple of 4
@ 2024-01-17 19:14 Philipp Tomsich
0 siblings, 0 replies; 3+ messages in thread
From: Philipp Tomsich @ 2024-01-17 19:14 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:a69c964f1616df393295f3643f5edd5f54d3c830
commit a69c964f1616df393295f3643f5edd5f54d3c830
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 761c1ed3608..58543629756 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)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-01-23 20:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-28 13:35 [gcc(refs/vendors/vrull/heads/slp-improvements)] Fix memory corruption when group_size is not a multiple of 4 Philipp Tomsich
2024-01-17 19:14 Philipp Tomsich
2024-01-23 20:57 Philipp Tomsich
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).