2010-04-20 Richard Guenther <rguenther@suse.de>
commitc448576c9095cd7aac10ad04b60a75209590b3cb
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Apr 2010 09:05:33 +0000 (20 09:05 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Apr 2010 09:05:33 +0000 (20 09:05 +0000)
treed5ba752e5310ed00cab81a9f5a159b123a6819de
parentdb7cab075c51073fad76db10debd09d52f118b3c
2010-04-20  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/43783
* tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
constant ARRAY_REF operands two and three if possible.

* gcc.c-torture/execute/pr43783.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_5-branch@158549 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr43783.c [new file with mode: 0644]
gcc/tree-ssa-pre.c