From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F3108386D61E; Fri, 30 Jun 2023 10:59:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F3108386D61E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688122787; bh=61on7sIfyIfCPPjYyWubUYX1dEoCxMBSVdr9V2R+mDE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kyC/aAZeroiuL5n+Nd+iwKK3s1DpmnxcIT6IbqjAIDTJSlyGatLQ1mVdl04cQeYF4 CNdK9ba0+NX04atj7kMxkvyOEhsdN2pIRPIvniVMmh4ySnD0GkWFffOWxlGllRrZ5z B4/4i8iXEObuSFt8qv+3Dmcz6o4hA/iHuQcDifEM= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110496] ICE: tree check: expected none of vector_type, have vector_type in find_bswap_or_nop_1, at gimple-ssa-store-merging.cc:654 Date: Fri, 30 Jun 2023 10:59:46 +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: 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: rguenth 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=3D110496 --- Comment #3 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:4f8e31e01bd04ab17a53deb5aa44bd82c885b228 commit r14-2211-g4f8e31e01bd04ab17a53deb5aa44bd82c885b228 Author: Richard Biener Date: Fri Jun 30 12:03:26 2023 +0200 tree-optimization/110496 - TYPE_PRECISION issue with store-merging When store-merging looks for bswap opportunities we also handle BIT_FIELD_REFs where we verify the refed object is of scalar type but we don't check for the result type we eventually use. That's done later but after we eventually query TYPE_PRECISION. The following re-orders this. PR tree-optimization/110496 * gimple-ssa-store-merging.cc (find_bswap_or_nop_1): Re-order verifying and TYPE_PRECISION query for the BIT_FIELD_REF case. * gcc.dg/pr110496.c: New testcase.=