Re: [PATCH] Recognize highpart multiplication during RTL expansion

2021-09-19 Thread Jeff Law via Gcc-patches
On 8/8/2021 4:48 AM, Roger Sayle wrote: This middle-end patch teaches RTL expansion to recognize widening multiplications followed by right shifts as highpart multiplications, and attempt to emit them using the backends [su]mul_highpart optab if possible. My first attempt at supporting this,

Re: [PATCH] Recognize highpart multiplication during RTL expansion

2021-08-09 Thread Richard Biener via Gcc-patches
On Sun, Aug 8, 2021 at 1:40 PM Roger Sayle wrote: > > > Doh! ENOPATCH. This time with attachments... > https://gcc.gnu.org/pipermail/gcc-patches/2021-August/576922.html Note I was originally suggesting to perform the matching on GIMPLE but only in one of the "instruction selection passes". There

[PATCH] Recognize highpart multiplication during RTL expansion

2021-08-08 Thread Roger Sayle
Doh! ENOPATCH. This time with attachments... https://gcc.gnu.org/pipermail/gcc-patches/2021-August/576922.html Roger -- diff --git a/gcc/config/nvptx/nvptx.md b/gcc/config/nvptx/nvptx.md index 108de1c..2b18f6a 100644 --- a/gcc/config/nvptx/nvptx.md +++ b/gcc/config/nvptx/nvptx.md @@ -614,6 +614

[PATCH] Recognize highpart multiplication during RTL expansion

2021-08-08 Thread Roger Sayle
This middle-end patch teaches RTL expansion to recognize widening multiplications followed by right shifts as highpart multiplications, and attempt to emit them using the backends [su]mul_highpart optab if possible. My first attempt at supporting this, from August 2020, is at: https://gcc.gnu.or