[Bug tree-optimization/80622] [8 Regression] wrong code at -O1 and above in both 32-bit and 64-bit modes on x86_64-linux-gnu
jamborm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu May 4 16:28:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80622
--- Comment #8 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Author: jamborm
Date: Thu May 4 16:19:20 2017
New Revision: 247604
URL: https://gcc.gnu.org/viewcvs?rev=247604&root=gcc&view=rev
Log:
[PR 80622] Treat const pools as initialized in SRA
2017-05-04 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/80622
* tree-sra.c (comes_initialized_p): New function.
(build_accesses_from_assign): Only set write lazily when
comes_initialized_p is false.
(analyze_access_subtree): Use comes_initialized_p.
(propagate_subaccesses_across_link): Assert !comes_initialized_p
instead of testing for PARM_DECL.
testsuite/
* gcc.dg/tree-ssa/pr80622.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr80622.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-sra.c
More information about the Gcc-bugs
mailing list