[Bug tree-optimization/125668] forwprop increases alignment requirements

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 8 13:24:30 GMT 2026


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

--- Comment #3 from GCC 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:878b5b0030d4b42b94b7df38375d6bf5f187dc33

commit r17-1423-g878b5b0030d4b42b94b7df38375d6bf5f187dc33
Author: Richard Biener <rguenther@suse.de>
Date:   Mon Jun 8 14:02:38 2026 +0200

    tree-optimization/125668 - missed alignment updating from forwprop

    With the PR125296 fix I forgot to handle the LHS propagation case.

            PR tree-optimization/125668
            * tree-ssa-forwprop.cc (forward_propagate_addr_expr_1):
            Preserve alignment of the original access also for propagating
            into the LHS.

            * gcc.dg/pr125668.c: New testcase.


More information about the Gcc-bugs mailing list