diff options
author | Andrew Pinski <quic_apinski@quicinc.com> | 2024-10-13 11:40:39 -0700 |
---|---|---|
committer | Andrew Pinski <quic_apinski@quicinc.com> | 2024-10-14 07:35:02 -0700 |
commit | ddd46d481a630bc31e292927fdeb1cc5c6808257 (patch) | |
tree | 498023b6c4d16bc3554310ae5cb1b4a5a4ac68bd /gcc/fold-const.cc | |
parent | 60de5585812f59a3095fa6208b01ddb8382634a0 (diff) | |
download | gcc-ddd46d481a630bc31e292927fdeb1cc5c6808257.zip gcc-ddd46d481a630bc31e292927fdeb1cc5c6808257.tar.gz gcc-ddd46d481a630bc31e292927fdeb1cc5c6808257.tar.bz2 |
dce: Use a base common base class for pass_cd_dce and pass_dce
The classes pass_dce and pass_cd_dce share the same mechansim for their
params and almost the same execute functionality so let's create a new
base class which will be used for these two classes and move the common
code into the same one.
Note update_address_taken_p was updated to be a NSDMI instead of initializing
it explicitly in the constructor.
Bootstrapped and tested on x86_64-linux-gnu.
gcc/ChangeLog:
* tree-ssa-dce.cc (tree_ssa_dce): Remove.
(tree_ssa_cd_dce): Remove.
(class pass_dce_base): New class.
(class pass_dce): Use pass_dce_base as the base class.
(class pass_cd_dce): Likewise.
Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions