From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 77BF83858D33; Mon, 6 May 2024 03:57:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 77BF83858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714967859; bh=WRVGLH0VNx6wlWB8Am0egxqLkgOj5+RU6V7kEQXbhVo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AO5LsXYWRpmAZtM4IOSFztNlIwmcxRX/ng3j2aM6VVhKNOT/DBqn1W+ks+pCyiV4H vTF6iH/52Rmwr1OXJ57lsIHeQBO+tBgM+LShb5ePSFtcc1GmaJ4VDpASWfwNzkrByK JssL9mY7FbR6/+qw99vt+RRKp1X9BVmZz0YnAOOM= From: "liuhongt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/114943] X86 AVX2: inefficient code generated to convert SIMD Vectors Date: Mon, 06 May 2024 03:57:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: liuhongt at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: cc 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=3D114943 Hongtao Liu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |liuhongt at gcc dot gnu.org --- Comment #1 from Hongtao Liu --- For convert3, we already have a patch for it, and will post soon. For convert, the current loop vectorizer has a limitation to keep the same vector length while vectorizing, thus generating extra packing/unpacking instructions compared to convert2. But there's no such limitation in BB vectorizer, so w/ -O3 -march=3Dx86-64-v3 -fno-tree-loop-vectorize, convert = is as good as convert2=