[Bug tree-optimization/70884] [6 regression] 2nd SRA pass confused by load from constant pool
jamborm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 23 11:28:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70884
--- Comment #9 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Author: jamborm
Date: Mon May 23 11:27:14 2016
New Revision: 236584
URL: https://gcc.gnu.org/viewcvs?rev=236584&root=gcc&view=rev
Log:
[PR 70884] Constant pool SRA fix
2016-05-23 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/70884
* tree-sra.c (initialize_constant_pool_replacements): Do not check
should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
(sort_and_splice_var_accesses): Do not consider multiple scalar reads
of constant pool data as a reason for scalarization.
testsuite/
* gcc.dg/tree-ssa/pr70919.c: New test.
Added:
branches/gcc-6-branch/gcc/testsuite/gcc.dg/tree-ssa/pr70919.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/testsuite/ChangeLog
branches/gcc-6-branch/gcc/tree-sra.c
More information about the Gcc-bugs
mailing list