From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3872D3870848; Tue, 21 Apr 2020 15:11:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3872D3870848 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587481891; bh=gzjg48M4gzc+/QddXNkJbdV57GXhjSac4XXBEHwewA4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LeNkF0g7hIStl7GP05K3sHq3zpdhIRyc2kEOx7VHgcLXjkoWPHXh2uoEh7sMvTNT1 13nj8ETjVdsofVztM4f3PX3GwoBQu6NBDANBs/0uP5W25SEinc6UVtA1GRUBxO0QQ4 35eHMt7ptMESdgu7NgpJByPUvQG3h6RbhnU3MHLA= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/94683] ICE in forwprop when folding to a VEC_PERM_EXPR Date: Tue, 21 Apr 2020 15:11:31 +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: 10.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: rsandifo 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Apr 2020 15:11:31 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94683 --- Comment #2 from CVS Commits --- The master branch has been updated by Richard Sandiford : https://gcc.gnu.org/g:85353e24ca90282e1d3620682841f524de20475c commit r10-7851-g85353e24ca90282e1d3620682841f524de20475c Author: Richard Sandiford Date: Tue Apr 21 16:11:07 2020 +0100 forwprop: Fix ICE when building a VEC_PERM_EXPR [PR94683] The type compatibility handling in simplify_vector_constructor is based on the number of elements and on element type compatibility, but that's no longer enough to ensure that two vector types are compatible. This patch uses a VIEW_CONVERT_EXPR if the permutation type and result type are distinct. 2020-04-21 Richard Sandiford gcc/ PR tree-optimization/94683 * tree-ssa-forwprop.c (simplify_vector_constructor): Use a VIEW_CONVERT_EXPR to handle mixtures of similarly-structured but distinct vector types. gcc/testsuite/ PR tree-optimization/94683 * gcc.target/aarch64/sve/acle/general/pr94683.c: New test.=