Fix bogus check in recent forwprop change

Message ID alpine.LSU.2.20.1905151157240.10704@zhemvz.fhfr.qr
State New
Headers show
Series
  • Fix bogus check in recent forwprop change
Related show

Commit Message

Richard Biener May 15, 2019, 9:57 a.m.
Committed as obvious.

2019-05-15  Richard Biener  <rguenther@suse.de>

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

Patch

Index: gcc/tree-ssa-forwprop.c
===================================================================
--- gcc/tree-ssa-forwprop.c	(revision 271155)
+++ gcc/tree-ssa-forwprop.c	(working copy)
@@ -2102,7 +2102,7 @@  simplify_vector_constructor (gimple_stmt
 		break;
 	    }
 	  /* Found a suitable vector element.  */
-	  if (j <= 2)
+	  if (j < 2)
 	    {
 	      orig[j] = ref;
 	      if (j)