[PR 70884] Constant pool SRA fix
authorMartin Jambor <mjambor@suse.cz>
Fri, 20 May 2016 21:04:31 +0000 (23:04 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 20 May 2016 21:04:31 +0000 (23:04 +0200)
commitc91a0948c3d72d8625111b5c5b6a0392c8830bb5
treef3ee0dbb42bb38da5e7953b8f8168c1ce28cb200
parent4727d4c6a81774e9b1de91a5e7089c6d17cc6d37
[PR 70884] Constant pool SRA fix

2016-05-20  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.

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