mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 03:47:02 -05:00
Revert "tree-optimization/114921 - _Float16 -> __bf16 isn't noop"
This reverts commit fa7e05d90b.
This commit is contained in:
@@ -5955,17 +5955,14 @@ vectorizable_assignment (vec_info *vinfo,
|
||||
if (!vectype_in)
|
||||
vectype_in = get_vectype_for_scalar_type (vinfo, TREE_TYPE (op), slp_node);
|
||||
|
||||
/* We can handle VIEW_CONVERT conversions that do not change the number
|
||||
of elements or the vector size or other conversions when the component
|
||||
mode keeps the same. */
|
||||
if (!vectype_in
|
||||
|| maybe_ne (TYPE_VECTOR_SUBPARTS (vectype_in), nunits)
|
||||
|| (code == VIEW_CONVERT_EXPR
|
||||
&& maybe_ne (GET_MODE_SIZE (TYPE_MODE (vectype)),
|
||||
GET_MODE_SIZE (TYPE_MODE (vectype_in))))
|
||||
|| (CONVERT_EXPR_CODE_P (code)
|
||||
&& (TYPE_MODE (TREE_TYPE (vectype))
|
||||
!= TYPE_MODE (TREE_TYPE (vectype_in)))))
|
||||
/* We can handle NOP_EXPR conversions that do not change the number
|
||||
of elements or the vector size. */
|
||||
if ((CONVERT_EXPR_CODE_P (code)
|
||||
|| code == VIEW_CONVERT_EXPR)
|
||||
&& (!vectype_in
|
||||
|| maybe_ne (TYPE_VECTOR_SUBPARTS (vectype_in), nunits)
|
||||
|| maybe_ne (GET_MODE_SIZE (TYPE_MODE (vectype)),
|
||||
GET_MODE_SIZE (TYPE_MODE (vectype_in)))))
|
||||
return false;
|
||||
|
||||
if (VECTOR_BOOLEAN_TYPE_P (vectype) != VECTOR_BOOLEAN_TYPE_P (vectype_in))
|
||||
|
||||
Reference in New Issue
Block a user