https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103204
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:5571c2719269687ad518d5aadf248a7500f11f85 commit r11-9260-g5571c2719269687ad518d5aadf248a7500f11f85 Author: Richard Biener <rguent...@suse.de> Date: Fri Nov 12 09:09:29 2021 +0100 tree-optimization/103204 - fix missed valueization in VN The following fixes a missed valueization when simplifying a MEM[&...] combination during valueization. 2021-11-12 Richard Biener <rguent...@suse.de> PR tree-optimization/103204 * tree-ssa-sccvn.c (valueize_refs_1): Re-valueize the top operand after folding in an address. * gcc.dg/torture/pr103204.c: New testcase. (cherry picked from commit 140346fa246dc2476c5c2bf2ecadebd18a3af5d0)