Re: [PATCH] Remove variables only used with .DEFERRED_INIT

2023-03-14 Thread Jakub Jelinek via Gcc-patches
On Tue, Mar 14, 2023 at 10:12:58AM +, Richard Biener via Gcc-patches wrote: > In PR109087 it was noticed that we rely on DSE to remove .DEFERRED_INIT > when it is the only remaining use of a variable. Since DSE is imperfect > and even if it were not would be limited by the amount of statements

[PATCH] Remove variables only used with .DEFERRED_INIT

2023-03-14 Thread Richard Biener via Gcc-patches
In PR109087 it was noticed that we rely on DSE to remove .DEFERRED_INIT when it is the only remaining use of a variable. Since DSE is imperfect and even if it were not would be limited by the amount of statements to walk the following enhances the unused var removal pass to handle .DEFERRED_INIT l