]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
IBM Z: gen-vect-11/32: Set min-vect-loop-bound param back to default
authorAndreas Krebbel <krebbel@linux.ibm.com>
Tue, 5 Nov 2019 15:26:19 +0000 (15:26 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Tue, 5 Nov 2019 15:26:19 +0000 (15:26 +0000)
In the Z backend we still set min-vect-loop-bound to 2 to work around
corner cases where awkward epilogue code gets generated in the
vectorizer.  This has a particular bad impact when vectorizing loops
with a low iteration count.  Due to this we do not vectorize the loop
in gen-vect-11/32 - what actually is a pity.

The patch sets min-vect-loop-bound back to the default value of 0 in
order to enable vectorization.

2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>

Backport from mainline
2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>

* gcc.dg/tree-ssa/gen-vect-11.c: Add --param min-vect-loop-bound=0
for IBM Z.
* gcc.dg/tree-ssa/gen-vect-11.c: Likewise.

From-SVN: r277843

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-11.c
gcc/testsuite/gcc.dg/tree-ssa/gen-vect-32.c

index dde8e96551a938aba57bb2c2c35d7807e5e743d6..df6b79fd5fb31c803cb66725025e41e1577756b4 100644 (file)
@@ -1,3 +1,12 @@
+2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>
+
+       Backport from mainline
+       2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>
+
+       * gcc.dg/tree-ssa/gen-vect-11.c: Add --param min-vect-loop-bound=0
+       for IBM Z.
+       * gcc.dg/tree-ssa/gen-vect-11.c: Likewise.
+
 2019-11-05  Andreas Krebbel  <krebbel@linux.ibm.com>
 
        Backport from mainline
index 650e73a5ee8931e0c3fd797ce26a7fa3f9c74054..dd1c0ac3eba67c9493a6527fb6a6d951bd70b2ab 100644 (file)
@@ -1,6 +1,10 @@
 /* { dg-do run { target vect_cmdline_needed } } */
 /* { dg-options "-O2 -ftree-vectorize -fwrapv -fdump-tree-vect-details -fvect-cost-model=dynamic" } */
-/* { dg-options "-O2 -ftree-vectorize -fwrapv -fdump-tree-vect-details -fvect-cost-model=dynamic -mno-sse" { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-additional-options "-mno-sse" { target { i?86-*-* x86_64-*-* } } } */
+/* The IBM Z backend sets the min-vect-loop-bound param to 2 to avoid
+   awkward epilogue code generation in some cases.  This line needs to
+   be removed after finding an alternate way to fix this.  */
+/* { dg-additional-options "--param min-vect-loop-bound=0" { target { s390*-*-* } } } */
 
 #include <stdlib.h>
 
index 8fce4385d0b4ecd136f495cfd4296075903ad7b8..2ec698968a982d1180728f3948e9af3c101f48bf 100644 (file)
@@ -1,6 +1,10 @@
 /* { dg-do run { target vect_cmdline_needed } } */
 /* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details -fno-vect-cost-model" } */
 /* { dg-additional-options "-mno-sse" { target { i?86-*-* x86_64-*-* } } } */
+/* The IBM Z backend sets the min-vect-loop-bound param to 2 to avoid
+   awkward epilogue code generation in some cases.  This line needs to
+   be removed after finding an alternate way to fix this.  */
+/* { dg-additional-options "--param min-vect-loop-bound=0" { target { s390*-*-* } } } */
 
 #include <stdlib.h>