Re: [PATCH] PR rtl-optimization/106594: Preserve zero_extend when cheap.

2022-09-12 Thread Segher Boessenkool
On Mon, Sep 12, 2022 at 11:47:47AM -0500, Segher Boessenkool wrote: > On Mon, Sep 12, 2022 at 12:40:31AM +0100, Roger Sayle wrote: > > * gcc/combine.cc (expand_compound_operation): Don't expand/transform > > ZERO_EXTEND or SIGN_EXTEND on targets where rtx_cost claims they are > >

Re: [PATCH] PR rtl-optimization/106594: Preserve zero_extend when cheap.

2022-09-12 Thread Segher Boessenkool
Hi! On Mon, Sep 12, 2022 at 12:40:31AM +0100, Roger Sayle wrote: > * gcc/combine.cc (expand_compound_operation): Don't expand/transform > ZERO_EXTEND or SIGN_EXTEND on targets where rtx_cost claims they are > cheap. If gen_lowpart returns a SUBREG of something other than a

Re: [PATCH] PR rtl-optimization/106594: Preserve zero_extend when cheap.

2022-09-12 Thread Richard Sandiford via Gcc-patches
"Roger Sayle" writes: > Hi Richard, > >> "Roger Sayle" writes: >> > This patch addresses PR rtl-optimization/106594, a significant >> > performance regression affecting aarch64 recently introduced (exposed) >> > by one of my recent RTL simplification improvements. Firstly many >> > thanks to Tam

RE: [PATCH] PR rtl-optimization/106594: Preserve zero_extend when cheap.

2022-09-12 Thread Roger Sayle
Hi Richard, > "Roger Sayle" writes: > > This patch addresses PR rtl-optimization/106594, a significant > > performance regression affecting aarch64 recently introduced (exposed) > > by one of my recent RTL simplification improvements. Firstly many > > thanks to Tamar Christina for confirming t

Re: [PATCH] PR rtl-optimization/106594: Preserve zero_extend when cheap.

2022-09-12 Thread Richard Sandiford via Gcc-patches
"Roger Sayle" writes: > This patch addresses PR rtl-optimization/106594, a significant performance > regression affecting aarch64 recently introduced (exposed) by one of my > recent RTL simplification improvements. Firstly many thanks to > Tamar Christina for confirming that the core of this patc

[PATCH] PR rtl-optimization/106594: Preserve zero_extend when cheap.

2022-09-11 Thread Roger Sayle
This patch addresses PR rtl-optimization/106594, a significant performance regression affecting aarch64 recently introduced (exposed) by one of my recent RTL simplification improvements. Firstly many thanks to Tamar Christina for confirming that the core of this patch provides ~5% performance imp