OSDN Git Service

2010-07-08 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jul 2010 11:38:43 +0000 (11:38 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jul 2010 11:38:43 +0000 (11:38 +0000)
commit16952c2cac969ef045f63fe18764b4f1d719eac5
tree222d856bd4e364f7cc1df6fadbcc8ad5bb0f1728
parent2cb9ef3991e49cca727e9b9959820473d666016f
2010-07-08  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/44831
* tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
a MEM_REF preserving TBAA info of the original dereference.
Dereference the original pointer if the address is not
invariant.
(propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
at least one invariant address that we are going to dereference.

* gcc.c-torture/compile/pr44831.c: New testcase.
* gcc.dg/tree-ssa/pr21463.c: Adjust.

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