re PR tree-optimization/88828 (Inefficient update of the first element of vector registers)

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
This commit is contained in:
Richard Biener 2019-05-15 09:59:37 +00:00 committed by Richard Biener
parent 905549856d
commit 595ffc073b
2 changed files with 7 additions and 1 deletions

View 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

View 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)