aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/module.cc
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-05-23 09:56:37 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2024-05-23 23:52:57 -0700
commit3e06763a695d97aa46c9de71573ec6a43bb92449 (patch)
treed714e98ab5eb19ebee91fb985d0acec336f98175 /gcc/cp/module.cc
parentc71886f2ca2e46ce1449c7064d6f1b447d02fcba (diff)
downloadgcc-3e06763a695d97aa46c9de71573ec6a43bb92449.zip
gcc-3e06763a695d97aa46c9de71573ec6a43bb92449.tar.gz
gcc-3e06763a695d97aa46c9de71573ec6a43bb92449.tar.bz2
Use simple_dce_from_worklist in phiprop
I noticed that phiprop leaves around phi nodes which defines a ssa name which is unused. This just adds a bitmap to mark those ssa names and then calls simple_dce_from_worklist at the very end to remove those phi nodes and all of the dependencies if there was any. This might allow us to optimize something earlier due to the removal of the phi which was taking the address of the variables. Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: * tree-ssa-phiprop.cc (phiprop_insert_phi): Add dce_ssa_names argument. Add the phi's result to it. (propagate_with_phi): Add dce_ssa_names argument. Update call to phiprop_insert_phi. (pass_phiprop::execute): Update call to propagate_with_phi. Call simple_dce_from_worklist if there was a change. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/cp/module.cc')
0 files changed, 0 insertions, 0 deletions