Re: [PATCH take #3] PR target/103773: Fix wrong-code with -Oz from pop to memory.

2021-12-23 Thread Uros Bizjak via Gcc-patches
On Thu, Dec 23, 2021 at 10:35 AM Roger Sayle wrote: > > Hi Uros, > > A huge thanks for the list of suggested improvements to the -Oz related > patches. > I've combined them altogether in the submission below, which makes sense now > that everything is implemented using peephole2. The

[PATCH take #3] PR target/103773: Fix wrong-code with -Oz from pop to memory.

2021-12-23 Thread Roger Sayle
Hi Uros, A huge thanks for the list of suggested improvements to the -Oz related patches. I've combined them altogether in the submission below, which makes sense now that everything is implemented using peephole2. The implementation of push/pop via peephole2 is exactly as you've suggested, also