Re: [PATCH] DSE: Use the constant source if possible

2022-05-23 Thread Richard Biener via Gcc-patches
On Sat, May 21, 2022 at 5:02 AM H.J. Lu via Gcc-patches wrote: > > When recording store for RTL dead store elimination, check if the source > register is set only once to a constant. If yes, record the constant > as the store source. It eliminates unrolled zero stores after memset 0 > in a loop

[PATCH] DSE: Use the constant source if possible

2022-05-20 Thread H.J. Lu via Gcc-patches
When recording store for RTL dead store elimination, check if the source register is set only once to a constant. If yes, record the constant as the store source. It eliminates unrolled zero stores after memset 0 in a loop where a vector register is used as the zero store source. gcc/ P