On Sun, May 05, 2019 at 01:31:12AM -0500, Li Jia He wrote:
> GCC revision 267634 implemented two_value_replacement function.
> However, a typo occurred during the parameter check, which caused
> us to miss some optimizations.

Thanks for catching this.

> The regression testing for the patch was done on GCC mainline on
> 
>     powerpc64le-unknown-linux-gnu (Power 9 LE)
> 
> with no regressions.  Is it OK for trunk and backport to gcc 9 ?

Ok for both, but see below.

> gcc/ChangeLog
> 
> 2019-05-05  Li Jia He  <heli...@linux.ibm.com>
> 
>       * tree-ssa-phiopt.c (two_value_replacement):
>       Fix a typo in parameter detection.

Don't break a line after :, only when you reach 80 columns.  So:
        * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
        detection.

>       * gcc.dg/pr88676.c: Modify the include header file.
>       * gcc.dg/tree-ssa/pr37508.c: Add the no-ssa-phiopt option to
>       skip phi optimization.
>       * gcc.dg/tree-ssa/pr88676.c: Rename to ...
>       * gcc.dg/tree-ssa/pr88676-1.c: ... this new file.
>       * gcc.dg/tree-ssa/pr88676-2.c: New testcase.

Please don't rename tests unless really necessary.  Just keep pr88676.c
and add pr88676-2.c next to it.

> --- a/gcc/testsuite/gcc.dg/pr88676.c
> +++ b/gcc/testsuite/gcc.dg/pr88676.c
> @@ -2,7 +2,7 @@
>  /* { dg-do run } */
>  /* { dg-options "-O2" } */
>  
> -#include "tree-ssa/pr88676.c"
> +#include "tree-ssa/pr88676-1.c"
>  
>  __attribute__((noipa)) void
>  bar (int x, int y, int z)

Thus remove this hunk.

> rename from gcc/testsuite/gcc.dg/tree-ssa/pr88676.c
> rename to gcc/testsuite/gcc.dg/tree-ssa/pr88676-1.c

And this one.

        Jakub

Reply via email to