diff options
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r-- | gcc/tree-sra.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c index e5fbcf2..234dde2 100644 --- a/gcc/tree-sra.c +++ b/gcc/tree-sra.c @@ -2199,7 +2199,9 @@ analyze_access_subtree (struct access *root, struct access *parent, { 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); |