https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93538
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Guenther <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:5124c34fcc62f0f880ae947542678e28aa2ce703 commit r10-6433-g5124c34fcc62f0f880ae947542678e28aa2ce703 Author: Richard Biener <rguent...@suse.de> Date: Tue Feb 4 15:17:01 2020 +0100 tree-optimization/93538 - add missing comparison folding case This adds back a folding that worked in GCC 4.5 times by amending the pattern that handles other cases of address vs. SSA name comparisons. 2020-02-04 Richard Biener <rguent...@suse.de> PR tree-optimization/93538 * match.pd (addr EQ/NE ptr): Amend to handle &ptr->x EQ/NE ptr. * gcc.dg/tree-ssa/forwprop-38.c: New testcase.