Re: [PATCH] match: Delay folding of 1/x into `(x+1u)<2u?x:0` until late [PR113301]

2024-01-11 Thread Richard Biener
On Thu, Jan 11, 2024 at 5:24 AM Andrew Pinski wrote: > > Since currently ranger does not work with the complexity of COND_EXPR in > some cases so delaying the simplification of `1/x` for signed types > help code generation. > tree-ssa/divide-8.c is a new testcase where this can help. Huh. It loo

[PATCH] match: Delay folding of 1/x into `(x+1u)<2u?x:0` until late [PR113301]

2024-01-10 Thread Andrew Pinski
Since currently ranger does not work with the complexity of COND_EXPR in some cases so delaying the simplification of `1/x` for signed types help code generation. tree-ssa/divide-8.c is a new testcase where this can help. Bootstrapped and tested on x86_64-linux-gnu with no regressions. PR