re PR tree-optimization/31982 (Missed forw prop with indirect ref and addr. (and...
authorRichard Guenther <rguenther@suse.de>
Fri, 25 May 2007 09:07:29 +0000 (09:07 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 25 May 2007 09:07:29 +0000 (09:07 +0000)
commit88efe45a92a6b6b3e0a1767143af61436f75052b
tree6502eb3dfad884611a31270c8024502f2d16a26a
parent36032710357e5af5f3743c46c29c457e2b04ed05
re PR tree-optimization/31982 (Missed forw prop with indirect ref and addr. (and char types or sizeof(type) == 1))

2007-05-24  Richard Guenther  <rguenther@suse.de>
        Andrew Pinski  <andrew_pinski@playstation.sony.com>

PR tree-optimization/31982
* tree-ssa-forwprop.c
(forward_propagate_addr_into_variable_array_index): Handle arrays
with element size one.

* gcc.dg/tree-ssa/forwprop-2.c: New testcase.

Co-Authored-By: Andrew Pinski <andrew_pinski@playstation.sony.com>
From-SVN: r125058
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/forwprop-2.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.c