This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/70884] [6 regression] 2nd SRA pass confused by load from constant pool
- From: "jamborm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 23 May 2016 11:27:46 +0000
- Subject: [Bug tree-optimization/70884] [6 regression] 2nd SRA pass confused by load from constant pool
- Auto-submitted: auto-generated
- References: <bug-70884-4 at http dot gcc dot gnu dot org/bugzilla/>
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