aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2019-05-15 09:59:37 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2019-05-15 09:59:37 +0000
commit595ffc073bf5b1753e3a18dfa704391ad5fad626 (patch)
treeb593128da6ec6f6adf95daacb4a3d096560ea7f0 /gcc
parent905549856db41a1979382867060c6260b9f844f2 (diff)
downloadgcc-595ffc073bf5b1753e3a18dfa704391ad5fad626.zip
gcc-595ffc073bf5b1753e3a18dfa704391ad5fad626.tar.gz
gcc-595ffc073bf5b1753e3a18dfa704391ad5fad626.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-ssa-forwprop.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a736de9..b531a29 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c
index b6b21f8..2828c6b 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)