Re: [PATCH v3] ARM: thumb1: Use LDMIA/STMIA for DI/DF loads/stores

2024-07-04 Thread Richard Earnshaw (lists)
On 04/07/2024 13:50, Siarhei Volkau wrote: > чт, 4 июл. 2024 г. в 12:45, Richard Earnshaw (lists) > : >> >> On 20/06/2024 08:24, Siarhei Volkau wrote: >>> If the address register is dead after load/store operation it looks >>> beneficial to use LDMIA/STMIA instead of pair of LDR/STR instructions,

Re: [PATCH v3] ARM: thumb1: Use LDMIA/STMIA for DI/DF loads/stores

2024-07-04 Thread Siarhei Volkau
чт, 4 июл. 2024 г. в 12:45, Richard Earnshaw (lists) : > > On 20/06/2024 08:24, Siarhei Volkau wrote: > > If the address register is dead after load/store operation it looks > > beneficial to use LDMIA/STMIA instead of pair of LDR/STR instructions, > > at least if optimizing for size. > > > >

Re: [PATCH v3] ARM: thumb1: Use LDMIA/STMIA for DI/DF loads/stores

2024-07-04 Thread Richard Earnshaw (lists)
On 20/06/2024 08:24, Siarhei Volkau wrote: > If the address register is dead after load/store operation it looks > beneficial to use LDMIA/STMIA instead of pair of LDR/STR instructions, > at least if optimizing for size. > > Changes v2 -> v3: > - switching to mixed approach (insn+peep2) > -

[PATCH v3] ARM: thumb1: Use LDMIA/STMIA for DI/DF loads/stores

2024-06-20 Thread Siarhei Volkau
If the address register is dead after load/store operation it looks beneficial to use LDMIA/STMIA instead of pair of LDR/STR instructions, at least if optimizing for size. Changes v2 -> v3: - switching to mixed approach (insn+peep2) - keep memory attributes in peepholes - handle stmia corner