re PR tree-optimization/91896 (ICE in vect_get_vec_def_for_stmt_copy, at tree-vect-stmts.c:1687)
2019-09-25 Richard Biener <rguenther@suse.de> PR tree-optimization/91896 * tree-vect-loop.c (vectorizable_reduction): The single def-use cycle optimization cannot apply when there's more than one pattern stmt involved. * gcc.dg/torture/pr91896.c: New testcase. From-SVN: r276158
This commit is contained in:
parent
1b4dbccc1f
commit
0bfc204142
|
@ -1,3 +1,10 @@
|
||||||
|
2019-09-25 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
|
PR tree-optimization/91896
|
||||||
|
* tree-vect-loop.c (vectorizable_reduction): The single
|
||||||
|
def-use cycle optimization cannot apply when there's more
|
||||||
|
than one pattern stmt involved.
|
||||||
|
|
||||||
2019-09-26 Richard Biener <rguenther@suse.de>
|
2019-09-26 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
* tree-vect-loop.c (vect_analyze_loop_operations): Analyze
|
* tree-vect-loop.c (vect_analyze_loop_operations): Analyze
|
||||||
|
|
13
gcc/expr.c
13
gcc/expr.c
|
@ -7230,12 +7230,13 @@ get_inner_reference (tree exp, poly_int64_pod *pbitsize,
|
||||||
*punsignedp = (! INTEGRAL_TYPE_P (TREE_TYPE (exp))
|
*punsignedp = (! INTEGRAL_TYPE_P (TREE_TYPE (exp))
|
||||||
|| TYPE_UNSIGNED (TREE_TYPE (exp)));
|
|| TYPE_UNSIGNED (TREE_TYPE (exp)));
|
||||||
|
|
||||||
/* For vector types, with the correct size of access, use the mode of
|
/* For vector element types with the correct size of access or for
|
||||||
inner type. */
|
vector typed accesses use the mode of the access type. */
|
||||||
if (TREE_CODE (TREE_TYPE (TREE_OPERAND (exp, 0))) == VECTOR_TYPE
|
if ((TREE_CODE (TREE_TYPE (TREE_OPERAND (exp, 0))) == VECTOR_TYPE
|
||||||
&& TREE_TYPE (exp) == TREE_TYPE (TREE_TYPE (TREE_OPERAND (exp, 0)))
|
&& TREE_TYPE (exp) == TREE_TYPE (TREE_TYPE (TREE_OPERAND (exp, 0)))
|
||||||
&& tree_int_cst_equal (size_tree, TYPE_SIZE (TREE_TYPE (exp))))
|
&& tree_int_cst_equal (size_tree, TYPE_SIZE (TREE_TYPE (exp))))
|
||||||
mode = TYPE_MODE (TREE_TYPE (exp));
|
|| VECTOR_TYPE_P (TREE_TYPE (exp)))
|
||||||
|
mode = TYPE_MODE (TREE_TYPE (exp));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
2019-09-26 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
|
PR middle-end/91897
|
||||||
|
* gcc.target/i386/pr91897.c: New testcase.
|
||||||
|
|
||||||
2019-09-26 Martin Sebor <msebor@redhat.com>
|
2019-09-26 Martin Sebor <msebor@redhat.com>
|
||||||
|
|
||||||
PR tree-optimization/91914
|
PR tree-optimization/91914
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
/* { dg-do compile } */
|
||||||
|
/* { dg-options "-O2 -mavx" } */
|
||||||
|
|
||||||
|
typedef double Double16 __attribute__((vector_size(8*16)));
|
||||||
|
|
||||||
|
void mult(Double16 *res, const Double16 *v1, const Double16 *v2)
|
||||||
|
{
|
||||||
|
*res = *v1 * *v2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* We want 4 ymm loads and 4 ymm stores. */
|
||||||
|
/* { dg-final { scan-assembler-times "movapd" 8 } } */
|
Loading…
Reference in New Issue