]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/88828 (Inefficient update of the first element of vector...
authorRichard Biener <rguenther@suse.de>
Wed, 15 May 2019 09:59:37 +0000 (09:59 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 15 May 2019 09:59:37 +0000 (09:59 +0000)
2019-05-15  Richard Biener  <rguenther@suse.de>

PR tree-optimization/88828
* tree-ssa-forwprop.c (simplify_vector_constructor): Fix
bogus check.

From-SVN: r271204

gcc/ChangeLog
gcc/tree-ssa-forwprop.c

index a736de96432b0f2df32d4ba646232d5dae2193e6..b531a2950ef997893a9b0af03d20414b811a145a 100644 (file)
@@ -1,3 +1,9 @@
+2019-05-15  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/88828
+       * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
+       bogus check.
+
 2019-05-14  Richard Biener  <rguenther@suse.de>
 
        * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
index b6b21f86f13ffc2146b7faf37b221cd09b866a6c..2828c6be351199f368304abf036eb600c84c5b03 100644 (file)
@@ -2102,7 +2102,7 @@ simplify_vector_constructor (gimple_stmt_iterator *gsi)
                break;
            }
          /* Found a suitable vector element.  */
-         if (j <= 2)
+         if (j < 2)
            {
              orig[j] = ref;
              if (j)