aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.cc
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-10-13 11:16:51 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2024-10-14 07:34:53 -0700
commit60de5585812f59a3095fa6208b01ddb8382634a0 (patch)
tree12e53f8363493fec90109ae9b13219f506158b05 /gcc/fold-const.cc
parent0110a381de6b843c0d7dcb7fcd563a678a763ddb (diff)
downloadgcc-60de5585812f59a3095fa6208b01ddb8382634a0.zip
gcc-60de5585812f59a3095fa6208b01ddb8382634a0.tar.gz
gcc-60de5585812f59a3095fa6208b01ddb8382634a0.tar.bz2
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>
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions