Move scanning pass of forwprop-19.c to dse1 for r13-3212-gb88adba751da63

Message ID 20221017032429.282693-1-liwei.xu@intel.com
State Accepted
Headers
Series Move scanning pass of forwprop-19.c to dse1 for r13-3212-gb88adba751da63 |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

Liwei Xu Oct. 17, 2022, 3:24 a.m. UTC
  gcc/testsuite/ChangeLog:

	* gcc.dg/tree-ssa/forwprop-19.c: Move scanning pass from forwprop1 to dse1, This fixs
	the test case fail.
---
 gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Hongtao Liu Oct. 17, 2022, 3:43 a.m. UTC | #1
On Mon, Oct 17, 2022 at 11:26 AM Liwei Xu via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> gcc/testsuite/ChangeLog:
>
>         * gcc.dg/tree-ssa/forwprop-19.c: Move scanning pass from forwprop1 to dse1, This fixs
>         the test case fail.
Looks like an obvious fix to me.
> ---
>  gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c
> index 4d77138b206..6ca81cb6c49 100644
> --- a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c
> +++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c
> @@ -1,5 +1,5 @@
>  /* { dg-do compile } */
> -/* { dg-options "-O -fdump-tree-forwprop1" } */
> +/* { dg-options "-O -fdump-tree-dse1" } */
>
>  typedef int vec __attribute__((vector_size (4 * sizeof (int))));
>  void f (vec *x1, vec *x2)
> @@ -11,4 +11,4 @@ void f (vec *x1, vec *x2)
>    *x1 = z;
>  }
>
> -/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "forwprop1" } } */
> +/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "dse1" } } */
> --
> 2.18.2
>
  
Richard Biener Oct. 17, 2022, 7:07 a.m. UTC | #2
On Mon, Oct 17, 2022 at 5:44 AM Hongtao Liu via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> On Mon, Oct 17, 2022 at 11:26 AM Liwei Xu via Gcc-patches
> <gcc-patches@gcc.gnu.org> wrote:
> >
> > gcc/testsuite/ChangeLog:
> >
> >         * gcc.dg/tree-ssa/forwprop-19.c: Move scanning pass from forwprop1 to dse1, This fixs
> >         the test case fail.
> Looks like an obvious fix to me.

Yes, OK.

Thanks,
Richard.

> > ---
> >  gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c
> > index 4d77138b206..6ca81cb6c49 100644
> > --- a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c
> > +++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c
> > @@ -1,5 +1,5 @@
> >  /* { dg-do compile } */
> > -/* { dg-options "-O -fdump-tree-forwprop1" } */
> > +/* { dg-options "-O -fdump-tree-dse1" } */
> >
> >  typedef int vec __attribute__((vector_size (4 * sizeof (int))));
> >  void f (vec *x1, vec *x2)
> > @@ -11,4 +11,4 @@ void f (vec *x1, vec *x2)
> >    *x1 = z;
> >  }
> >
> > -/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "forwprop1" } } */
> > +/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "dse1" } } */
> > --
> > 2.18.2
> >
>
>
> --
> BR,
> Hongtao
  

Patch

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c
index 4d77138b206..6ca81cb6c49 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-19.c
@@ -1,5 +1,5 @@ 
 /* { dg-do compile } */
-/* { dg-options "-O -fdump-tree-forwprop1" } */
+/* { dg-options "-O -fdump-tree-dse1" } */
 
 typedef int vec __attribute__((vector_size (4 * sizeof (int))));
 void f (vec *x1, vec *x2)
@@ -11,4 +11,4 @@  void f (vec *x1, vec *x2)
   *x1 = z;
 }
 
-/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "forwprop1" } } */
+/* { dg-final { scan-tree-dump-not "VEC_PERM_EXPR" "dse1" } } */