diff options
author | Andrew Pinski <apinski@marvell.com> | 2022-10-27 04:37:01 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2022-10-27 18:37:12 +0000 |
commit | 1c2b53ce8bbf5bbe1ddb13bb6005f432726518ae (patch) | |
tree | fc2510ab303f796544e3f2de3f61fb77afaea017 /libjava/java/net/ProtocolException.java | |
parent | a33d623d2d3a78f5ef6f9e854946303e063eef63 (diff) | |
download | gcc-1c2b53ce8bbf5bbe1ddb13bb6005f432726518ae.zip gcc-1c2b53ce8bbf5bbe1ddb13bb6005f432726518ae.tar.gz gcc-1c2b53ce8bbf5bbe1ddb13bb6005f432726518ae.tar.bz2 |
Use simple_dce_from_worklist with match_simplify_replacement.
This is a simple patch to do some DCE after a successful
match and simplify replacement in PHI-OPT. match and simplify
likes to generate some extra statements which should be cleaned
up.
OK? Bootstrapped and tested on x86_64-linux with no regressions.
Thanks,
Andrew Pinski
gcc/ChangeLog:
* tree-ssa-phiopt.cc: Include tree-ssa-dce.h
(replace_phi_edge_with_variable):
New argument, dce_ssa_names. Call simple_dce_from_worklist.
(match_simplify_replacement): If we inserted a sequence,
mark the lhs of the new sequence to be possible dce.
Always move the statement and mark the lhs (if it is a name)
as possible to remove.
Diffstat (limited to 'libjava/java/net/ProtocolException.java')
0 files changed, 0 insertions, 0 deletions