Re: [PATCH 1/9] Make more places handle exact_div like trunc_div

2024-10-18 Thread Richard Biener
On Fri, 18 Oct 2024, Richard Sandiford wrote: > I tried to look for places where we were handling TRUNC_DIV_EXPR > more favourably than EXACT_DIV_EXPR. > > Most of the places that I looked at but didn't change were handling > div/mod pairs. But there's bound to be others I missed... OK, but I'd

[PATCH 1/9] Make more places handle exact_div like trunc_div

2024-10-18 Thread Richard Sandiford
I tried to look for places where we were handling TRUNC_DIV_EXPR more favourably than EXACT_DIV_EXPR. Most of the places that I looked at but didn't change were handling div/mod pairs. But there's bound to be others I missed... gcc/ * match.pd: Extend some rules to handle exact_div like