diff options
author | Richard Guenther <rguenther@suse.de> | 2011-08-23 10:20:26 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2011-08-23 10:20:26 +0000 |
commit | 336ecb6550395820cea7c0bbc13c0b7bb5045e91 (patch) | |
tree | 6d2f1e616a3892935f54c6bfc6a6898383ff7bec /gcc | |
parent | b8324815b3eafbeaf1915284b1ad8df7e35011b3 (diff) | |
download | gcc-336ecb6550395820cea7c0bbc13c0b7bb5045e91.zip gcc-336ecb6550395820cea7c0bbc13c0b7bb5045e91.tar.gz gcc-336ecb6550395820cea7c0bbc13c0b7bb5045e91.tar.bz2 |
re PR tree-optimization/50162 (Wrong vectorization)
2011-08-23 Richard Guenther <rguenther@suse.de>
PR tree-optimization/50162
* tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
From-SVN: r177984
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-vect-stmts.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3913dbf..6c07b82 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2011-08-23 Richard Guenther <rguenther@suse.de> + PR tree-optimization/50162 + * tree-vect-stmts.c (vectorizable_call): Fix argument lookup. + +2011-08-23 Richard Guenther <rguenther@suse.de> + * tree-data-ref.c (dr_analyze_indices): Add comments, handle REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs. (create_data_ref): Also dump access functions for the created diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index bab19b8..3b5fa01 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -1697,7 +1697,7 @@ vectorizable_call (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt) } else { - vec_oprnd1 = gimple_call_arg (new_stmt, 2*i); + vec_oprnd1 = gimple_call_arg (new_stmt, 2*i + 1); vec_oprnd0 = vect_get_vec_def_for_stmt_copy (dt[i], vec_oprnd1); vec_oprnd1 |