[Patch, RTL] Eliminate redundant vec_select moves.

Jakub Jelinek jakub@redhat.com
Thu Dec 5 22:38:00 GMT 2013


On Wed, Dec 04, 2013 at 08:14:43AM -0800, H.J. Lu wrote:
> > --- /dev/null
> > +++ b/gcc/testsuite/gcc.dg/vect/vect-nop-move.c
> > @@ -0,0 +1,64 @@
> > +/* { dg-do run } */
> > +/* { dg-require-effective-target vect_float } */
> > +/* { dg-options "-O3 -fdump-rtl-combine-details" } */

Please change dg-options to dg-additional-options, otherwise
it overrides the target basic vectorization options and thus
fails on i686-linux.

> > +/* { dg-final { scan-rtl-dump "deleting noop move" "combine" { target
> > aarch64*-*-* } } } */
> 
> Any particular reason why it doesn't work for x86?
> 
> > +/* { dg-final { cleanup-rtl-dump "combine" } } */

You also need to add

/* { dg-final { cleanup-tree-dump "vect" } } */

because all vectorizer tests dump *.vect dumps.

	Jakub



More information about the Gcc-patches mailing list