aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-sra.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2010-06-09 13:20:03 +0200
committerMartin Jambor <jamborm@gcc.gnu.org>2010-06-09 13:20:03 +0200
commit1536b6ab5405e87b082c305321f382345d20f604 (patch)
tree7211b6e8b2594dec83d408ac174c8aae3475ae20 /gcc/tree-sra.c
parent2d7f5f9b5f54aae8eaaaa6e430422ecbbfe91f4d (diff)
downloadgcc-1536b6ab5405e87b082c305321f382345d20f604.zip
gcc-1536b6ab5405e87b082c305321f382345d20f604.tar.gz
gcc-1536b6ab5405e87b082c305321f382345d20f604.tar.bz2
re PR tree-optimization/44423 (Massive performance regression in SSE code due to SRA)
2010-06-09 Martin Jambor <mjambor@suse.cz> PR tree-optimization/44423 * tree-sra.c (dump_access): Dump also grp_assignment_read. (analyze_access_subtree): Pass negative allow_replacements to children if the current type is scalar. * testsuite/gcc.dg/tree-ssa/pr44423.c: New test. From-SVN: r160462
Diffstat (limited to 'gcc/tree-sra.c')
-rw-r--r--gcc/tree-sra.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/tree-sra.c b/gcc/tree-sra.c
index 702187c..5387a19 100644
--- a/gcc/tree-sra.c
+++ b/gcc/tree-sra.c
@@ -356,13 +356,13 @@ dump_access (FILE *f, struct access *access, bool grp)
print_generic_expr (f, access->type, 0);
if (grp)
fprintf (f, ", grp_write = %d, total_scalarization = %d, "
- "grp_read = %d, grp_hint = %d, "
+ "grp_read = %d, grp_hint = %d, grp_assignment_read = %d,"
"grp_covered = %d, grp_unscalarizable_region = %d, "
"grp_unscalarized_data = %d, grp_partial_lhs = %d, "
"grp_to_be_replaced = %d, grp_maybe_modified = %d, "
"grp_not_necessarilly_dereferenced = %d\n",
access->grp_write, access->total_scalarization,
- access->grp_read, access->grp_hint,
+ access->grp_read, access->grp_hint, access->grp_assignment_read,
access->grp_covered, access->grp_unscalarizable_region,
access->grp_unscalarized_data, access->grp_partial_lhs,
access->grp_to_be_replaced, access->grp_maybe_modified,
@@ -1791,7 +1791,8 @@ analyze_access_subtree (struct access *root, bool allow_replacements,
else
covered_to += child->size;
- sth_created |= analyze_access_subtree (child, allow_replacements,
+ sth_created |= analyze_access_subtree (child,
+ allow_replacements && !scalar,
mark_read, mark_write);
root->grp_unscalarized_data |= child->grp_unscalarized_data;