re PR target/92758 (r278833 breaks gcc.target/powerpc/fold-vec-splat-floatdouble.c)
authorRichard Biener <rguenther@suse.de>
Tue, 3 Dec 2019 14:47:24 +0000 (14:47 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 3 Dec 2019 14:47:24 +0000 (14:47 +0000)
2019-12-03  Richard Biener  <rguenther@suse.de>

PR tree-optimization/92758
* tree-ssa-forwprop.c (simplify_vector_constructor): Restore
operation on uniform vectors.

From-SVN: r278938

gcc/ChangeLog
gcc/tree-ssa-forwprop.c

index e9119f997451028348cd4c2dca80f373a862e8b1..9efc808eb8731bdfe5ee90c5c58bb54aab5675a3 100644 (file)
@@ -1,3 +1,9 @@
+2019-12-03  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/92758
+       * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
+       operation on uniform vectors.
+
 2019-12-03  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/92645
index 36e6267cf557bea14b6360e9e686811ac28e059c..4a831242c0e1418d89523aaee0eef900d8fcc3bb 100644 (file)
@@ -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));