commit:     a1e21703f86e5d60a68a53839774535ccdb8403e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 19 07:44:41 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan 19 07:44:41 2024 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=a1e21703

14.0.0: add 76_all_PR113467-vect-miscompile.patch

Bug: https://gcc.gnu.org/PR113467
Bug: https://bugs.gentoo.org/922195
Signed-off-by: Sam James <sam <AT> gentoo.org>

 14.0.0/gentoo/76_all_PR113467-vect-miscompile.patch | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/14.0.0/gentoo/76_all_PR113467-vect-miscompile.patch 
b/14.0.0/gentoo/76_all_PR113467-vect-miscompile.patch
new file mode 100644
index 0000000..aee5ddf
--- /dev/null
+++ b/14.0.0/gentoo/76_all_PR113467-vect-miscompile.patch
@@ -0,0 +1,15 @@
+https://gcc.gnu.org/PR113467
+
+Disable early-exit peeling variants.
+--- a/gcc/tree-vect-loop.cc
++++ b/gcc/tree-vect-loop.cc
+@@ -998,6 +998,9 @@ vec_init_loop_exit_info (class loop *loop)
+       }
+     }
+ 
++  if (candidate && candidate->src != EDGE_PRED (loop->latch, 0)->src)
++    return NULL;
++
+   return candidate;
+ }
+ 

Reply via email to