2013-01-15 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/55920
* tree-sra.c (analyze_access_subtree): Do not mark non-removable
accesses as grp_to_be_debug_replaced.
From-SVN: r195210
+2013-01-15 Martin Jambor <mjambor@suse.cz>
+
+ PR tree-optimization/55920
+ * tree-sra.c (analyze_access_subtree): Do not mark non-removable
+ accesses as grp_to_be_debug_replaced.
+
2013-01-15 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/55920
{
if (allow_replacements
&& scalar && !root->first_child
- && (root->grp_scalar_write || root->grp_assignment_write))
+ && (root->grp_scalar_write || root->grp_assignment_write)
+ && !bitmap_bit_p (cannot_scalarize_away_bitmap,
+ DECL_UID (root->base)))
{
gcc_checking_assert (!root->grp_scalar_read
&& !root->grp_assignment_read);