2014-01-30 Richard Biener <rguenther@suse.de>
commit135b982ddc5c8174c57dc9e8f294c7bf476bc9d2
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Jan 2014 18:28:19 +0000 (30 18:28 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Jan 2014 18:28:19 +0000 (30 18:28 +0000)
treed57bbbc4b9b65da04a915f26455cd3254ace9c7e
parentf8ca591b66df0cd27537a4e2c0c8118097493030
2014-01-30  Richard Biener  <rguenther@suse.de>

PR tree-optimization/59993
* tree-ssa-forwprop.c (associate_pointerplus): Check we
can propagate form the earlier stmt and avoid the transform
when the intermediate result is needed.

* gcc.dg/torture/pr59993.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207316 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr59993.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.c