Re: [PATCH v2] gimple-fold: Implement simple copy propagation for aggregates [PR14295]

2025-06-04 Thread Richard Biener
On Mon, Jun 2, 2025 at 8:31 AM Andrew Pinski wrote: > > This implements a simple copy propagation for aggregates in the similar > fashion as we already do for copy prop of zeroing. > > Right now this only looks at the previous vdef statement but this allows us > to catch a lot of cases that show u

[PATCH v2] gimple-fold: Implement simple copy propagation for aggregates [PR14295]

2025-06-01 Thread Andrew Pinski
This implements a simple copy propagation for aggregates in the similar fashion as we already do for copy prop of zeroing. Right now this only looks at the previous vdef statement but this allows us to catch a lot of cases that show up in C++ code. This used to deleted aggregate copies that are t