diff options
author | Richard Biener <rguenther@suse.de> | 2021-07-01 11:16:01 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2021-07-01 12:31:21 +0200 |
commit | 4a87605938428f6c4c62d5b92cfc183cd2b2554e (patch) | |
tree | a9478e77889df404fa204eefb4b1ff89a54167b1 /gcc/gimple-loop-interchange.cc | |
parent | a3aaba68405751bae3f630669515b7ecdf77efa6 (diff) | |
download | gcc-4a87605938428f6c4c62d5b92cfc183cd2b2554e.zip gcc-4a87605938428f6c4c62d5b92cfc183cd2b2554e.tar.gz gcc-4a87605938428f6c4c62d5b92cfc183cd2b2554e.tar.bz2 |
tree-optimization/101278 - handle self-use in DSE analysis
DSE store classification short-cuts the to-be classified stmt itself
from chaining but fails to first check whether the store uses itself
which can be the case when it is a call with the LHS also passed by
value as argument.
2021-07-01 Richard Biener <rguenther@suse.de>
PR tree-optimization/101278
* tree-ssa-dse.c (dse_classify_store): First check for
uses, then ignore stmt for chaining purposes.
* gcc.dg/torture/pr101278.c: New testcase.
Diffstat (limited to 'gcc/gimple-loop-interchange.cc')
0 files changed, 0 insertions, 0 deletions