Re: [x86 PATCH] UNSPEC_PALIGNR optimizations and clean-ups.

2022-07-04 Thread Hongtao Liu via Gcc-patches
t; From: Hongtao Liu > > Sent: 01 July 2022 03:40 > > To: Roger Sayle > > Cc: GCC Patches > > Subject: Re: [x86 PATCH] UNSPEC_PALIGNR optimizations and clean-ups. > > > > On Fri, Jul 1, 2022 at 10:12 AM Hongtao Liu wrote: > > > > > > On Fri, Jul

RE: [x86 PATCH] UNSPEC_PALIGNR optimizations and clean-ups.

2022-07-04 Thread Roger Sayle
. Thanks in advance, Roger -- > -Original Message- > From: Hongtao Liu > Sent: 01 July 2022 03:40 > To: Roger Sayle > Cc: GCC Patches > Subject: Re: [x86 PATCH] UNSPEC_PALIGNR optimizations and clean-ups. > > On Fri, Jul 1, 2022 at 10:12 AM Hongtao Liu wrote: > >

Re: [x86 PATCH] UNSPEC_PALIGNR optimizations and clean-ups.

2022-06-30 Thread Hongtao Liu via Gcc-patches
On Fri, Jul 1, 2022 at 10:12 AM Hongtao Liu wrote: > > On Fri, Jul 1, 2022 at 2:42 AM Roger Sayle wrote: > > > > > > This patch is a follow-up to Hongtao's fix for PR target/105854. That > > fix is perfectly correct, but the thing that caught my eye was why is > > the compiler generating a shift

Re: [x86 PATCH] UNSPEC_PALIGNR optimizations and clean-ups.

2022-06-30 Thread Hongtao Liu via Gcc-patches
On Fri, Jul 1, 2022 at 2:42 AM Roger Sayle wrote: > > > This patch is a follow-up to Hongtao's fix for PR target/105854. That > fix is perfectly correct, but the thing that caught my eye was why is > the compiler generating a shift by zero at all. Digging deeper it > turns out that we can easily

[x86 PATCH] UNSPEC_PALIGNR optimizations and clean-ups.

2022-06-30 Thread Roger Sayle
This patch is a follow-up to Hongtao's fix for PR target/105854. That fix is perfectly correct, but the thing that caught my eye was why is the compiler generating a shift by zero at all. Digging deeper it turns out that we can easily optimize __builtin_ia32_palignr for alignments of 0 and 64 re