From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F40D83858D35; Tue, 7 May 2024 07:08:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F40D83858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715065701; bh=DXkKM6qjCw46YAWEgQQ+xoaxAPo6eR+Pt20W3RO3jlc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mbcwUKGZib6PD2smc5amaV75jFkHBGVyrWYEllvoiSrdzTMbtizWYQ0F5IbSPS4lN 7oCuf9oUQrNW8NmV2hEvnuanbBkY9lr8RTO8gRJjEopYnWIsaVJfjIEzF/5COHs/JX PSQgCT5Eq6UieGmTTnFt6veVv9zagbZmBJ4M09/o= From: "mkretz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114966] fails to optimize avx2 in-register permute written with std::experimental::simd Date: Tue, 07 May 2024 07:08:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: mkretz 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=3D114966 Matthias Kretz (Vir) changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mkretz at gcc dot gnu.org --- Comment #2 from Matthias Kretz (Vir) --- GCC trunk recognizes a list-init of the vector builtin as a VEC_PERM_EXPR. That's what's behind the generator ctor of simd. So something goes wrong th= ere. I had a quick look through the tree passes on compiler-explorer, and on forwprop3 GCC 13 matches the VEC_PERM_EXPR, while trunk doesn't (https://godbolt.org/z/9Pef3c9d9)=