From 595ffc073bf5b1753e3a18dfa704391ad5fad626 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 15 May 2019 09:59:37 +0000 Subject: [PATCH] re PR tree-optimization/88828 (Inefficient update of the first element of vector registers) 2019-05-15 Richard Biener PR tree-optimization/88828 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix bogus check. From-SVN: r271204 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-forwprop.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a736de96432..b531a2950ef 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-05-15 Richard Biener + + PR tree-optimization/88828 + * tree-ssa-forwprop.c (simplify_vector_constructor): Fix + bogus check. + 2019-05-14 Richard Biener * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c index b6b21f86f13..2828c6be351 100644 --- a/gcc/tree-ssa-forwprop.c +++ b/gcc/tree-ssa-forwprop.c @@ -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) -- 2.30.2