[PR80803 2/2] Diligent queuing in SRA grp_write prop
authorMartin Jambor <mjambor@suse.cz>
Tue, 13 Jun 2017 11:40:24 +0000 (13:40 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 13 Jun 2017 11:40:24 +0000 (13:40 +0200)
commit345683a95f5a9a2f6c319764da7e7491e765da86
treeccaa86c7ea9c58ffef3b5ae4b86a308be277d376
parent35a952ba70028b50fbd2fd19f7dc91f2da45371e
[PR80803 2/2] Diligent queuing in SRA grp_write prop

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

PR tree-optimization/80803
PR tree-optimization/81063
* tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
(propagate_subaccesses_across_link): Enqueue subtree whneve necessary
instead of relying on the caller.

testsuite/
gcc.dg/tree-ssa/pr80803.c: New test.
gcc.dg/tree-ssa/pr81063.c: Likewise.

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