Enqueue all SRA links for write flag propagation
authorMartin Jambor <mjambor@suse.cz>
Wed, 6 Sep 2017 09:25:00 +0000 (11:25 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 6 Sep 2017 09:25:00 +0000 (11:25 +0200)
commite9982c6ae9c3525d0815963281a825996e392d42
treeb1a1cc1aa54de0f4c913401af9eb5b8e08779489
parentc7a494c99b4a421f6b80af834adb0d4c703d47a5
Enqueue all SRA links for write flag propagation

2017-09-06  Martin Jambor  <mjambor@suse.cz>

PR tree-optimization/82078
gcc/
* tree-sra.c (sort_and_splice_var_accesses): Move call to
add_access_to_work_queue...
(build_accesses_from_assign): ...here.
(propagate_all_subaccesses): Make sure racc is the group
representative, if there is one.

gcc/testsuite/
* gcc.dg/tree-ssa/pr82078.c: New test.

From-SVN: r251756
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr82078.c [new file with mode: 0644]
gcc/tree-sra.c