This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][2/3] Vectorize inductions that are live after the loop
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>,Richard Biener <rguenther at suse dot de>,Alan Hayward <alan dot hayward at arm dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 03 Jun 2016 20:59:21 +0200
- Subject: Re: [PATCH][2/3] Vectorize inductions that are live after the loop
- Authentication-results: sourceware.org; auth=none
- References: <D36DCD5A dot E30F%alan dot hayward at arm dot com> <CAFiYyc1zx4JttqgVRCq6auscp9pfOBsk8Qbw33x_rrX0-eJ_dg at mail dot gmail dot com> <D36E0ED3 dot E559%alan dot hayward at arm dot com> <CAFiYyc03G4+k8MuDyy7kn7EZHT5eW8Kh29ryejHXTNJjbJ80HA at mail dot gmail dot com> <D373738B dot EBB3%alan dot hayward at arm dot com> <CAFiYyc3XRYPsjmbZD4FArEvhCXBOJ9TfjMP0xa+LtgRnWhZ7QA at mail dot gmail dot com> <D3761878 dot F3DC%alan dot hayward at arm dot com> <20160603174524 dot GN7387 at tucnak dot redhat dot com>
On June 3, 2016 7:45:24 PM GMT+02:00, Jakub Jelinek <jakub@redhat.com> wrote:
>On Thu, Jun 02, 2016 at 05:11:15PM +0100, Alan Hayward wrote:
>> * gcc.dg/vect/vect-live-1.c: New test.
>> * gcc.dg/vect/vect-live-2.c: New test.
>> * gcc.dg/vect/vect-live-5.c: New test.
>> * gcc.dg/vect/vect-live-slp-1.c: New test.
>> * gcc.dg/vect/vect-live-slp-2.c: New test.
>> * gcc.dg/vect/vect-live-slp-3.c: New test.
>
>These tests all fail for me on i686-linux. The problem is
>in the use of dg-options in gcc.dg/vect/, where it override all the
>various
>needed vectorization options that need to be enabled on various arches
>(e.g. -msse2 on i686).
>
>Fixed thusly, tested on x86_64-linux and i686-linux, ok for trunk?
OK.
Richard.
>
>2016-06-03 Jakub Jelinek <jakub@redhat.com>
>
> * gcc.dg/vect/vect-live-1.c: Remove dg-options. Add
> dg-additional-options with just -fno-tree-scev-cprop in it.
> * gcc.dg/vect/vect-live-2.c: Likewise.
> * gcc.dg/vect/vect-live-5.c: Likewise.
> * gcc.dg/vect/vect-live-slp-1.c: Likewise.
> * gcc.dg/vect/vect-live-slp-2.c: Likewise.
> * gcc.dg/vect/vect-live-slp-3.c: Likewise.
>
>--- gcc/testsuite/gcc.dg/vect/vect-live-1.c.jj 2016-06-03
>17:36:38.000000000 +0200
>+++ gcc/testsuite/gcc.dg/vect/vect-live-1.c 2016-06-03
>19:37:09.176283421 +0200
>@@ -1,5 +1,5 @@
> /* { dg-require-effective-target vect_int } */
>-/* { dg-options "-O2 -ftree-vectorize -fno-tree-scev-cprop
>-fdump-tree-vect-details" } */
>+/* { dg-additional-options "-fno-tree-scev-cprop" } */
>
> #include "tree-vect.h"
>
>--- gcc/testsuite/gcc.dg/vect/vect-live-2.c.jj 2016-06-03
>17:36:38.000000000 +0200
>+++ gcc/testsuite/gcc.dg/vect/vect-live-2.c 2016-06-03
>19:37:27.537042349 +0200
>@@ -1,5 +1,5 @@
> /* { dg-require-effective-target vect_int } */
>-/* { dg-options "-O2 -ftree-vectorize -fno-tree-scev-cprop
>-fdump-tree-vect-details" } */
>+/* { dg-additional-options "-fno-tree-scev-cprop" } */
>
> #include "tree-vect.h"
>
>--- gcc/testsuite/gcc.dg/vect/vect-live-5.c.jj 2016-06-03
>17:36:38.000000000 +0200
>+++ gcc/testsuite/gcc.dg/vect/vect-live-5.c 2016-06-03
>19:37:53.239704879 +0200
>@@ -1,5 +1,5 @@
> /* { dg-require-effective-target vect_int } */
>-/* { dg-options "-O2 -ftree-vectorize -fno-tree-scev-cprop
>-fdump-tree-vect-details" } */
>+/* { dg-additional-options "-fno-tree-scev-cprop" } */
>
> #include "tree-vect.h"
>
>--- gcc/testsuite/gcc.dg/vect/vect-live-slp-1.c.jj 2016-06-03
>17:36:38.000000000 +0200
>+++ gcc/testsuite/gcc.dg/vect/vect-live-slp-1.c 2016-06-03
>19:38:13.341440948 +0200
>@@ -1,5 +1,5 @@
> /* { dg-require-effective-target vect_int } */
>-/* { dg-options "-O2 -ftree-vectorize -fno-tree-scev-cprop
>-fdump-tree-vect-details" } */
>+/* { dg-options "-fno-tree-scev-cprop" } */
>
> #include "tree-vect.h"
>
>--- gcc/testsuite/gcc.dg/vect/vect-live-slp-2.c.jj 2016-06-03
>17:36:38.000000000 +0200
>+++ gcc/testsuite/gcc.dg/vect/vect-live-slp-2.c 2016-06-03
>19:38:32.364191184 +0200
>@@ -1,5 +1,5 @@
> /* { dg-require-effective-target vect_int } */
>-/* { dg-options "-O2 -ftree-vectorize -fno-tree-scev-cprop
>-fdump-tree-vect-details" } */
>+/* { dg-additional-options "-fno-tree-scev-cprop" } */
>
> #include "tree-vect.h"
>
>--- gcc/testsuite/gcc.dg/vect/vect-live-slp-3.c.jj 2016-06-03
>17:36:38.000000000 +0200
>+++ gcc/testsuite/gcc.dg/vect/vect-live-slp-3.c 2016-06-03
>19:38:49.490966314 +0200
>@@ -1,5 +1,5 @@
> /* { dg-require-effective-target vect_int } */
>-/* { dg-options "-O2 -ftree-vectorize -fno-tree-scev-cprop
>-fdump-tree-vect-details" } */
>+/* { dg-options "-fno-tree-scev-cprop" } */
>
> #include "tree-vect.h"
>
>
>
> Jakub