[Bug tree-optimization/106922] [12 Regression] Bogus uninitialized warning on boost::optional<<std::vector<std::string>>>, missed FRE

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Sep 23 13:11:17 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106922

--- Comment #20 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:af611afe5fcc908a6678b5b205fb5af7d64fbcb2

commit r13-2817-gaf611afe5fcc908a6678b5b205fb5af7d64fbcb2
Author: Richard Biener <rguenther@suse.de>
Date:   Fri Sep 23 14:28:52 2022 +0200

    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.


More information about the Gcc-bugs mailing list