public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-2864] Fix profile update after vectorize loop versioning
@ 2023-07-29 6:19 Jan Hubicka
0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2023-07-29 6:19 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:5ffa9d0a5e22f6f763b7f04877a940689e7abcba
commit r14-2864-g5ffa9d0a5e22f6f763b7f04877a940689e7abcba
Author: Jan Hubicka <jh@suse.cz>
Date: Sat Jul 29 08:19:08 2023 +0200
Fix profile update after vectorize loop versioning
gcc/testsuite/ChangeLog:
* gcc.dg/tree-ssa/vect-profile-upate-2.c: New test.
Diff:
---
gcc/testsuite/gcc.dg/tree-ssa/vect-profile-upate-2.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vect-profile-upate-2.c b/gcc/testsuite/gcc.dg/tree-ssa/vect-profile-upate-2.c
new file mode 100644
index 00000000000..4a5f6bc4e23
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/tree-ssa/vect-profile-upate-2.c
@@ -0,0 +1,9 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -fdump-tree-optimized-details-blocks" } */
+void
+test (int *a, int *b, int n)
+{
+ for (int i = 0; i < n; i++)
+ a[i]+=b[i];
+}
+/* { dg-final { scan-tree-dump-not "Invalid sum" "optimized"} } */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-29 6:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-29 6:19 [gcc r14-2864] Fix profile update after vectorize loop versioning Jan Hubicka
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).