diff options
author | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-28 23:40:32 +0000 |
---|---|---|
committer | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-28 23:40:32 +0000 |
commit | 31a56b87b5d8fcc932f440522f7bc90f31d607f5 (patch) | |
tree | 12bb6e85be80f5c6d6d7e8a7fa61bf62a4c479e9 /gcc/tree-vect-stmts.c | |
parent | 24a06c6d6e10c52219d4752b3e6dcc61da7c95ea (diff) | |
download | gcc-31a56b87b5d8fcc932f440522f7bc90f31d607f5.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184645 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-stmts.c')
-rw-r--r-- | gcc/tree-vect-stmts.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |