]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR tree-optimization/50162 (Wrong vectorization)
authorRichard Guenther <rguenther@suse.de>
Tue, 3 Jan 2012 13:19:28 +0000 (13:19 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 3 Jan 2012 13:19:28 +0000 (13:19 +0000)
2012-01-03  Richard Guenther  <rguenther@suse.de>

Backport from mainline
2011-08-23  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/50162
* tree-vect-stmts.c (vectorizable_call): Fix argument lookup.

From-SVN: r182843

gcc/ChangeLog
gcc/tree-vect-stmts.c

index c06a728ce337f4a11d73f1641c807d2f3d840f07..f7f00b5d849417f5858f9fc212ae184abbf941a0 100644 (file)
@@ -1,3 +1,11 @@
+2012-01-03  Richard Guenther  <rguenther@suse.de>
+       Backport from mainline
+       2011-08-23  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/50162
+       * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
+
 2012-01-03  Richard Guenther  <rguenther@suse.de>
 
        Backport from mainline
index fc75cd48de4e7d267f3562076ad9416417505434..f36e95594d6ce928f6118852c00d75c9869034ce 100644 (file)
@@ -1416,7 +1416,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