From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1666) id 6F1D2384AB58; Fri, 3 May 2024 14:03:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F1D2384AB58 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714745018; bh=RHcpcY4AVaHKJMmAvsMRq+97jvsbVw+YhrG+N9m7rys=; h=From:To:Subject:Date:From; b=Cgwmc8EXG2/IjQ+Gs59Slg3uRG2D22i+VwHhapNpDs4z+hKdVYxQuOZiknFUUsRX6 jjMTlqj1hWSNogXCCqQ3f5HjeaZNcwGxu1xiNwKrgs4EWlIgHLr+Rl41MViOtk0J8+ 2riT/p3YlaDUof8QRekQiTkS7vWif0wjgGLr/qb8= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Richard Biener To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-10164] Revert "tree-optimization/114921 - _Float16 -> __bf16 isn't noop" X-Act-Checkin: gcc X-Git-Author: Richard Biener X-Git-Refname: refs/heads/releases/gcc-14 X-Git-Oldrev: d7c06a80b54486117a72fb2e7b007ad1838d6d0e X-Git-Newrev: db447ec808e997bd13a849d9b3076792afb888cb Message-Id: <20240503140338.6F1D2384AB58@sourceware.org> Date: Fri, 3 May 2024 14:03:38 +0000 (GMT) List-Id: https://gcc.gnu.org/g:db447ec808e997bd13a849d9b3076792afb888cb commit r14-10164-gdb447ec808e997bd13a849d9b3076792afb888cb Author: Richard Biener 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))