Re: [PATCH] PR rtl-optimization/110587: Reduce useless moves in compile-time hog.

2023-07-27 Thread Richard Biener via Gcc-patches
> Am 27.07.2023 um 19:12 schrieb Roger Sayle : > >  > Hi Richard, > > You're 100% right. It’s possible to significantly clean-up this code, > replacing > the body of the conditional with a call to force_reg and simplifying the > conditions > under which it is called. These improvements ar

RE: [PATCH] PR rtl-optimization/110587: Reduce useless moves in compile-time hog.

2023-07-27 Thread Roger Sayle
Hi Richard, You're 100% right. It’s possible to significantly clean-up this code, replacing the body of the conditional with a call to force_reg and simplifying the conditions under which it is called. These improvements are implemented in the patch below, which has been tested on x86_64-pc-li

Re: [PATCH] PR rtl-optimization/110587: Reduce useless moves in compile-time hog.

2023-07-25 Thread Richard Biener via Gcc-patches
On Tue, Jul 25, 2023 at 1:31 PM Roger Sayle wrote: > > > This patch is the third in series of fixes for PR rtl-optimization/110587, > a compile-time regression with -O0, that attempts to address the underlying > cause. As noted previously, the pathological test case pr28071.c contains > a large n