diff options
author | uweigand <> | 2012-02-28 23:40:32 +0000 |
---|---|---|
committer | uweigand <> | 2012-02-28 23:40:32 +0000 |
commit | 82057aba9dd98adc993aa886299829e439948654 (patch) | |
tree | 12bb6e85be80f5c6d6d7e8a7fa61bf62a4c479e9 /gcc | |
parent | 1c7f6cbdc13d75106fdd06c916c5f544ab995ecb (diff) |
Partially revert:
2012-02-20 Richard Guenther <rguenther@suse.de>
PR tree-optimization/52298
* tree-vect-stmts.c (vectorizable_load): Properly use
STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
outer loops.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/tree-vect-stmts.c | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aae247a5a38..2816c4ae8b0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> + + Partially revert: + + 2012-02-20 Richard Guenther <rguenther@suse.de> + PR tree-optimization/52298 + * tree-vect-stmts.c (vectorizable_load): Properly use + STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing + outer loops. + 2012-02-28 Aldy Hernandez <aldyh@redhat.com> PR middle-end/51752 diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index 78dd4d1615e..edfe98d3055 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -4659,7 +4659,7 @@ vectorizable_load (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt, nested within an outer-loop that is being vectorized. */ if (nested_in_vect_loop - && (TREE_INT_CST_LOW (STMT_VINFO_DR_STEP (stmt_info)) + && (TREE_INT_CST_LOW (DR_STEP (dr)) % GET_MODE_SIZE (TYPE_MODE (vectype)) != 0)) { gcc_assert (alignment_support_scheme != dr_explicit_realign_optimized); |