Re: [patch,avr] PR107957 - Propagate zero_reg to store sources.

2024-12-05 Thread Denis Chertykov
чт, 5 дек. 2024 г. в 14:23, Georg-Johann Lay : > > This is an addendum to the -msplit-ldst patch. > > When -msplit-ldst is on, it may be possible to propagate __zero_reg__ > to the sources of the new stores. For example, without this patch, > > unsigned long lx; > > void store_lsr17 (void) > { >

[patch,avr] PR107957 - Propagate zero_reg to store sources.

2024-12-05 Thread Georg-Johann Lay
This is an addendum to the -msplit-ldst patch. When -msplit-ldst is on, it may be possible to propagate __zero_reg__ to the sources of the new stores. For example, without this patch, unsigned long lx; void store_lsr17 (void) { lx >>= 17; } compiles to: store_lsr17: lds r26,lx+2