From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 459E3386101B; Wed, 20 Dec 2023 16:44:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 459E3386101B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703090698; bh=pbUxg+Wwm4dsjV9O/u4Bn6DPrZpqVveOAXKdlYW1TSA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dw+pc6Z0Qq3kMcs1KsYH0rQSNvXk9yLbAKkdAlstTfSgNIp3o+Fg+/zPsthml7u8x oBSoBQ8MgC+y89QpnEXZ6iOpIR1voH+GpkOcyvJdxxI1Lts94SOEq3GYAEuRZ9SdiM IADP/5ky8EFW8RGwoJq7YamvyrvydnkQjrkuPwMo= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112787] Codegen regression of large GCC vector extensions when enabling SVE Date: Wed, 20 Dec 2023 16:44:58 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: avieira 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=3D112787 --- Comment #3 from GCC Commits --- The master branch has been updated by Andre Simoes Dias Vieira : https://gcc.gnu.org/g:a3ff76278efe006dc0b50249c8e5baf565bff56b commit r14-6752-ga3ff76278efe006dc0b50249c8e5baf565bff56b Author: Andre Vieira Date: Wed Dec 20 16:41:52 2023 +0000 veclower: improve selection of vector mode when lowering [PR 112787] This patch addresses the issue reported in PR target/112787 by improving the compute type selection. We do this by not considering types with more elements than the type we are lowering since we'd reject such types anyway. gcc/ChangeLog: PR target/112787 * tree-vect-generic.cc (type_for_widest_vector_mode): Change function to use original vector type and check widest vector mode has at mo= st the same number of elements. (get_compute_type): Pass original vector type rather than the element type to type_for_widest_vector_mode and remove now obsolete che= ck for the number of elements. gcc/testsuite/ChangeLog: * gcc.target/aarch64/pr112787.c: New test.=