This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, PR 43846] Less strict scalarization criteria in SRA


On Fri, Apr 23, 2010 at 5:09 AM, Martin Jambor <mjambor@suse.cz> wrote:
> Hi,
>
> PR 43846 shows that we should really create scalar replacements also
> for bits of aggregates that were written to and read in a RHS of an
> assignment as a part of an aggregate (currently we demand that the
> piece is read individually, among other possibilities).
>
> I have bootstrapped and tested the following on x86_64-linux without
> any problems. ?OK for trunk and perhaps after some time for the 4.5
> branch too?
>
> Thanks,
>
> Martin
>
>
> 2010-04-22 ?Martin Jambor ?<mjambor@suse.cz>
>
> ? ? ? ?PR tree-optimization/43846
> ? ? ? ?* tree-sra.c (struct access): New flag grp_assignment_read.
> ? ? ? ?(build_accesses_from_assign): Set grp_assignment_read.
> ? ? ? ?(sort_and_splice_var_accesses): Propagate grp_assignment_read.
> ? ? ? ?(enum mark_read_status): New type.
> ? ? ? ?(analyze_access_subtree): Propagate grp_assignment_read, create
> ? ? ? ?accesses also if both direct_read and root->grp_assignment_read.
>
> ? ? ? ?* testsuite/gcc.dg/tree-ssa/sra-10.c: New test.
>

This patch caused:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44900


-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]