>-Original Message-
>From: Segher Boessenkool
>Sent: Friday, June 4, 2021 4:00 AM
>To: Liu, Hongtao
>Cc: Richard Biener ; GCC Patches patc...@gcc.gnu.org>
>Subject: Re: [PATCH] Canonicalize (vec_duplicate (not A)) to (not
>(vec_duplicate A)).
>
>On T
On Thu, Jun 03, 2021 at 11:03:43AM +, Liu, Hongtao wrote:
> >A very typical example is how UMIN is optimised:
> >
> > case UMIN:
> > if (trueop1 == CONST0_RTX (mode) && ! side_effects_p (op0))
> > return op1;
> > if (rtx_equal_p (trueop0, trueop1) && ! side_effects_p (op0))
> >
On Thu, Jun 03, 2021 at 11:03:43AM +, Liu, Hongtao via Gcc-patches wrote:
> In simplify_rtx, no simplication occurs, there is just the difference between
> (vec_duplicate (not REG)) and (not (vec_duplicate (REG)). So here tem will
> only be 0.
> Basically we don't know it's a simplication unt
>-Original Message-
>From: Segher Boessenkool
>Sent: Thursday, June 3, 2021 4:46 AM
>To: Richard Biener
>Cc: Liu, Hongtao ; GCC Patches patc...@gcc.gnu.org>
>Subject: Re: [PATCH] Canonicalize (vec_duplicate (not A)) to (not
>(vec_duplicate A)).
>
>Hi!
&g
Hi!
On Wed, Jun 02, 2021 at 09:07:35AM +0200, Richard Biener wrote:
> On Wed, Jun 2, 2021 at 7:41 AM liuhongt via Gcc-patches
> wrote:
> > For i386, it will enable below opt
> >
> > from
> > notl%edi
> > vpbroadcastd%edi, %xmm0
> > vpand %xmm1, %xmm0, %xmm0
> > t
On Wed, Jun 2, 2021 at 7:41 AM liuhongt via Gcc-patches
wrote:
>
> For i386, it will enable below opt
>
> from
> notl%edi
> vpbroadcastd%edi, %xmm0
> vpand %xmm1, %xmm0, %xmm0
> to
> vpbroadcastd%edi, %xmm0
> vpandn %xmm1, %xmm0, %xmm0
There