aboutsummaryrefslogtreecommitdiff
path: root/libphobos/src
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2021-05-05 16:15:12 +0200
committerRichard Biener <rguenther@suse.de>2021-05-10 11:40:39 +0200
commita564da506f52be66ade298b562417641e87b549f (patch)
tree4a279c5890c1797e1f224007e151ad9f3c55abc7 /libphobos/src
parent877e620f381e7af83d386f2ffec6f47546dd07c5 (diff)
downloadgcc-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