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

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

https://gcc.gnu.org/g:4bf76b5b6db8e68755788ec91012c5a686440720

commit r14-2164-g4bf76b5b6db8e68755788ec91012c5a686440720
Author: Richard Biener <rguent...@suse.de>
Date:   Wed Jun 28 11:27:45 2023 +0200

    tree-optimization/110434 - avoid <retval> ={v} {CLOBBER} from NRV

    When NRV replaces a local variable with <retval> it also replaces
    occurences in clobbers.  This leads to <retval> being clobbered
    before the return of it which is strictly invalid but harmless in
    practice since there's no pass after NRV which would remove
    earlier stores.

    The following fixes this nevertheless.

            PR tree-optimization/110434
            * tree-nrv.cc (pass_nrv::execute): Remove CLOBBERs of
            VAR we replace with <retval>.

Reply via email to