Re: [PATCH] tree-optimization/116463 - complex lowering leaves around dead stmts

2024-08-23 Thread Andrew Pinski
On Fri, Aug 23, 2024 at 5:38 AM Richard Biener wrote: > > Complex lowering generally replaces existing complex defs with > COMPLEX_EXPRs but those might be dead when it can always refer to > components from the lattice. This in turn can pessimize followup > transforms like forwprop and reassoc, t

[PATCH] tree-optimization/116463 - complex lowering leaves around dead stmts

2024-08-23 Thread Richard Biener
Complex lowering generally replaces existing complex defs with COMPLEX_EXPRs but those might be dead when it can always refer to components from the lattice. This in turn can pessimize followup transforms like forwprop and reassoc, the following makes sure to get rid of dead COMPLEX_EXPRs generate