[Bug tree-optimization/93538] [8/9/10 Regression] equality of address of first member to address to enclosing object not folded
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 4 14:19:00 GMT 2020
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 <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:5124c34fcc62f0f880ae947542678e28aa2ce703
commit r10-6433-g5124c34fcc62f0f880ae947542678e28aa2ce703
Author: Richard Biener <rguenther@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 <rguenther@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.
More information about the Gcc-bugs
mailing list