From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 09E5E3858D20; Tue, 30 May 2023 09:50:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 09E5E3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685440239; bh=Zj4GT1GCph5IldWRPz/zD5l7pyJVflYB9zwFeQfONrs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xbEegYIarTUBFCXCvm0BlU8sTQbiL7QJfFIISkGWYXA24uX4ADfMKQjtuRadYhtZZ Wuz5igBDWqThjoxF/H06EyFHSjILszXzjDUrrGqbcu7p7u6ufXIq9r0eBlk749Rti4 +/dwIe8jGbztQze3KYYVO7d5MkK7zeVmWie4eii0= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/110018] Missing vectorizable_conversion(unsigned char -> double) for BB vectorizer Date: Tue, 30 May 2023 09:50:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110018 --- Comment #5 from Hongtao.liu --- Do we know if the stmt belongs to any slp_node in pattern recog? slp_node u= se SLP_TREE_LANES for vectype which is different from vinfo->vector_mode. Different optabs should be checked according to both vectype_in and vectype_out, for non-slp case, assuming vec_pack/unpack are always used when lhs has different size from rhs, for slp case, sometimes vec_pack/unpack is used, somethings direct conversion is used.=