public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-10164] Revert "tree-optimization/114921 - _Float16 -> __bf16 isn't noop"
@ 2024-05-03 14:03 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2024-05-03 14:03 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:db447ec808e997bd13a849d9b3076792afb888cb

commit r14-10164-gdb447ec808e997bd13a849d9b3076792afb888cb
Author: Richard Biener <rguenther@suse.de>
Date:   Fri May 3 16:03:14 2024 +0200

    Revert "tree-optimization/114921 - _Float16 -> __bf16 isn't noop"
    
    This reverts commit fa7e05d90bb672b58424ddbe37a05a0fd0949b35.

Diff:
---
 gcc/tree-vect-stmts.cc | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc
index 7e571968a59..f8d8636b139 100644
--- a/gcc/tree-vect-stmts.cc
+++ b/gcc/tree-vect-stmts.cc
@@ -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))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-03 14:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-03 14:03 [gcc r14-10164] Revert "tree-optimization/114921 - _Float16 -> __bf16 isn't noop" Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).