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,
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
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
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