From 577f4a0e5e7f7ef9b5729a3eed79e523cba9dfa9 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 3 Dec 2019 14:47:24 +0000 Subject: [PATCH] re PR target/92758 (r278833 breaks gcc.target/powerpc/fold-vec-splat-floatdouble.c) 2019-12-03 Richard Biener PR tree-optimization/92758 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore operation on uniform vectors. From-SVN: r278938 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-forwprop.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e9119f99745..9efc808eb87 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-12-03 Richard Biener + + PR tree-optimization/92758 + * tree-ssa-forwprop.c (simplify_vector_constructor): Restore + operation on uniform vectors. + 2019-12-03 Richard Biener PR tree-optimization/92645 diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c index 36e6267cf55..4a831242c0e 100644 --- a/gcc/tree-ssa-forwprop.c +++ b/gcc/tree-ssa-forwprop.c @@ -2043,8 +2043,7 @@ simplify_vector_constructor (gimple_stmt_iterator *gsi) gcc_checking_assert (TREE_CODE (op) == CONSTRUCTOR && TREE_CODE (type) == VECTOR_TYPE); - if (!TYPE_VECTOR_SUBPARTS (type).is_constant (&nelts) - || uniform_vector_p (op)) + if (!TYPE_VECTOR_SUBPARTS (type).is_constant (&nelts)) return false; elem_type = TREE_TYPE (type); elem_size = TREE_INT_CST_LOW (TYPE_SIZE (elem_type)); -- 2.30.2