aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2022-09-23 14:28:52 +0200
committerRichard Biener <rguenther@suse.de>2022-09-23 15:10:54 +0200
commitaf611afe5fcc908a6678b5b205fb5af7d64fbcb2 (patch)
tree4afb9a869b3cc42f350119e75d04d47909d3770c /gcc/rust/backend
parentab0f70a63011ff06eea64960e3b8ca66575bfdaf (diff)
downloadgcc-af611afe5fcc908a6678b5b205fb5af7d64fbcb2.zip
gcc-af611afe5fcc908a6678b5b205fb5af7d64fbcb2.tar.gz
gcc-af611afe5fcc908a6678b5b205fb5af7d64fbcb2.tar.bz2
tree-optimization/106922 - extend same-val clobber FRE
The following extends the skipping of same valued stores to handle an arbitrary number of them as long as they are from the same value (which we now record). That's an obvious extension which allows to optimize the m_engaged member of std::optional more reliably. PR tree-optimization/106922 * tree-ssa-sccvn.cc (vn_reference_lookup_3): Allow an arbitrary number of same valued skipped stores. * g++.dg/torture/pr106922.C: New testcase.
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions