diff options
author | Richard Biener <rguenther@suse.de> | 2021-05-05 16:15:12 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2021-05-10 11:40:39 +0200 |
commit | a564da506f52be66ade298b562417641e87b549f (patch) | |
tree | 4a279c5890c1797e1f224007e151ad9f3c55abc7 /libphobos/src | |
parent | 877e620f381e7af83d386f2ffec6f47546dd07c5 (diff) | |
download | gcc-a564da506f52be66ade298b562417641e87b549f.zip gcc-a564da506f52be66ade298b562417641e87b549f.tar.gz gcc-a564da506f52be66ade298b562417641e87b549f.tar.bz2 |
tree-optimization/100434 - DSE aggregate call LHS
This makes DSE consider aggregate LHS of calls as dead, for pure
or const calls the whole stmt and for others by removing the LHS.
2021-05-05 Richard Biener <rguenther@suse.de>
PR tree-optimization/100434
* tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
call LHS.
(dse_optimize_stmt): Handle call LHS by dropping the
LHS or the whole call if it doesn't have other
side-effects.
(pass_dse::execute): Adjust.
* gcc.dg/tree-ssa/ssa-dse-43.c: New testcase.
Diffstat (limited to 'libphobos/src')
0 files changed, 0 insertions, 0 deletions