From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4A8503870872; Mon, 27 Apr 2020 10:08:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4A8503870872 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587982137; bh=zMgbPC57x8s8q5G03CR1BvesIZCYtWxN4HbL1J7BxMc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WQrcg5mtBx2eTdOwD6kevmNGVd9mxkJeWZP+54u1U9Zd+afqFc5okGv1AoJFtMsHZ 4SuBxtcBl5xW/ZiGp/6nxPS6luzuzx74UAQCaTj4VE0hUuObeNHqd19yprfbfO8ad3 KumkiLkbjk4fXQF6MK+8fW7ysbef0Dh12k6roc1M= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/94784] ICE: in simplify_vector_constructor, at tree-ssa-forwprop.c:2482 Date: Mon, 27 Apr 2020 10:08:57 +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: 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: 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: Mon, 27 Apr 2020 10:08:57 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94784 --- Comment #3 from CVS Commits --- The master branch has been updated by Richard Sandiford : https://gcc.gnu.org/g:5328710be314dee43da8027dbff547d48b85e35e commit r10-7987-g5328710be314dee43da8027dbff547d48b85e35e Author: Fei Yang Date: Mon Apr 27 11:08:04 2020 +0100 forwprop: Fix ICE when building an identity constructor [PR94784] In the testcase for PR94784, we have two vectors with the same ABI iden= tity but with different TYPE_MODEs. It would be better to flip the assert ar= ound so that it checks that the two vectors have equal TYPE_VECTOR_SUBPARTS = and that converting the corresponding element types is a useless_type_conversion_p. 2020-04-27 Felix Yang gcc/ PR tree-optimization/94784 * tree-ssa-forwprop.c (simplify_vector_constructor): Flip the assert around so that it checks that the two vectors have equal TYPE_VECTOR_SUBPARTS and that converting the corresponding elem= ent types is a useless_type_conversion_p. gcc/testsuite/ PR tree-optimization/94784 * gcc.dg/pr94784.c: New test.=