[PATCH] RISC-V: optimize stack manipulation in save-restore

2022-11-30 Thread Fei Gao
The stack that save-restore reserves is not well accumulated in stack allocation and deallocation. This patch allows less instructions to be used in stack allocation and deallocation if save-restore enabled, and also a much clear logic for save-restore stack manipulation. before patch: b

Re: [PATCH] RISC-V: optimize stack manipulation in save-restore

2022-11-30 Thread Palmer Dabbelt
On Wed, 30 Nov 2022 00:37:17 PST (-0800), gao...@eswincomputing.com wrote: The stack that save-restore reserves is not well accumulated in stack allocation and deallocation. This patch allows less instructions to be used in stack allocation and deallocation if save-restore enabled, and also a m

Re: [PATCH] RISC-V: optimize stack manipulation in save-restore

2022-11-30 Thread Fei Gao
On 2022-12-01 06:50  Palmer Dabbelt wrote: > >On Wed, 30 Nov 2022 00:37:17 PST (-0800), gao...@eswincomputing.com wrote: >> The stack that save-restore reserves is not well accumulated in stack >> allocation and deallocation. >> This patch allows less instructions to be used in stack allocation a

Re: Re: [PATCH] RISC-V: optimize stack manipulation in save-restore

2022-12-05 Thread Fei Gao
Hi Palmer and all,  I have split the patches and triggerred a new thread. https://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg297206.html Could you please review at your convenience? Thanks & BR,  Fei On 2022-12-01 11:07  Fei Gao wrote: > >On 2022-12-01 06:50  Palmer Dabbelt wrote: >> >>O