re PR tree-optimization/13962 ([tree-ssa] make "fold" use alias information to optimi...
authorRichard Biener <rguenther@suse.de>
Fri, 29 Apr 2016 08:36:49 +0000 (08:36 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 29 Apr 2016 08:36:49 +0000 (08:36 +0000)
commit98998245d99f06946b4d5ed6744c77c3760f1141
tree1858d6d18d0408f87683330cd1b7664179f40c81
parent59cf7a415cf212da56ea3ebd5b34063e84b9275f
re PR tree-optimization/13962 ([tree-ssa] make "fold" use alias information to optimize pointer comparisons)

2016-04-29  Richard Biener  <rguenther@suse.de>

PR tree-optimization/13962
PR tree-optimization/65686
* tree-ssa-alias.h (ptrs_compare_unequal): Declare.
* tree-ssa-alias.c (ptrs_compare_unequal): New function
using PTA to compare pointers.
* match.pd: Add pattern for pointer equality compare simplification
using ptrs_compare_unequal.

* gcc.dg/uninit-pr65686.c: New testcase.

From-SVN: r235622
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/uninit-pr65686.c [new file with mode: 0644]
gcc/tree-ssa-alias.c
gcc/tree-ssa-alias.h