]> git.ipfire.org Git - thirdparty/gcc.git/commit
dce: add remove_unused_locals conditionally to the todos [PR117096]
authorAndrew Pinski <quic_apinski@quicinc.com>
Sun, 13 Oct 2024 18:16:51 +0000 (11:16 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Mon, 14 Oct 2024 14:34:53 +0000 (07:34 -0700)
commit60de5585812f59a3095fa6208b01ddb8382634a0
tree12e53f8363493fec90109ae9b13219f506158b05
parent0110a381de6b843c0d7dcb7fcd563a678a763ddb
dce: add remove_unused_locals conditionally to the todos [PR117096]

This is the updated patch with the suggestion from:
https://gcc.gnu.org/pipermail/gcc-patches/2024-October/665217.html
Where we use a second arg/param to set which passes we want to have
the remove_unused_locals on the dce.

Bootstrapped and tested on x86_64-linux-gnu.

gcc/ChangeLog:

PR tree-optimization/117096
* passes.def: Update some of the dce/cd-cde passes setting
the 2nd arg to true.
Also remove comment about stdarg since dce does it.
* tree-ssa-dce.cc (pass_dce): Add remove_unused_locals_p field.
Update set_pass_param to allow for 2nd param.
Use remove_unused_locals_p in execute to return TODO_remove_unused_locals.
(pass_cd_dce): Likewise.
* tree-stdarg.cc (pass_data_stdarg): Remove TODO_remove_unused_locals.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/passes.def
gcc/tree-ssa-dce.cc
gcc/tree-stdarg.cc