Re: [PATCH] Improve x86-64 32-bit div/mod followed by zero-extension to 64-bit (PR target/82361)

2017-09-30 Thread Uros Bizjak
On Fri, Sep 29, 2017 at 11:05 PM, Jakub Jelinek wrote: > Hi! > > The following patch adds patterns and splitters for {,u}divmodsi4 followed > by zero-extension, similarly to other 32-bit operand instructions divl and > idivl zero extends both results to 64-bit, so there is no need to extend it > a

[PATCH] Improve x86-64 32-bit div/mod followed by zero-extension to 64-bit (PR target/82361)

2017-09-29 Thread Jakub Jelinek
Hi! The following patch adds patterns and splitters for {,u}divmodsi4 followed by zero-extension, similarly to other 32-bit operand instructions divl and idivl zero extends both results to 64-bit, so there is no need to extend it again. The REE pass ignores instructions that have more than one SE