[Bug ipa/65270] [5 regression] issues with merging memory accesses from different code paths
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 9 13:55:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65270
--- Comment #33 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Mar 9 13:54:28 2015
New Revision: 221281
URL: https://gcc.gnu.org/viewcvs?rev=221281&root=gcc&view=rev
Log:
2015-03-09 Richard Biener <rguenther@suse.de>
PR middle-end/65270
* tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
* fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
of that. When comparing dereferences compare alignment.
When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
* gcc.dg/torture/pr65270-1.c: New testcase.
* gcc.dg/torture/pr65270-2.c: Likewise.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr65270-1.c
trunk/gcc/testsuite/gcc.dg/torture/pr65270-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-core.h
More information about the Gcc-bugs
mailing list