From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3177D3858D3C; Tue, 7 Mar 2023 10:48:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3177D3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678186112; bh=f91G1Vskp4y74xph286rWEG7lGcsrXJgAPINF66M6oU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XXji1Qg0lYtGkxOLJ2KDFvTAO4t6fhewYr0nXngzBtqki51h+Pqw5t+Gk1WaNaetS sqb2a6vMHiKRoo+IsTj98ijQiQfEt4sYvndLL8IqJF5YSv8eMwocheY2k+5kZDim7T WJnsI9hMvXNcRQwHYlMsTWTGYKJzkPrmJyFq9wKc= From: "dkm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109005] [13 Regression] ICE during GIMPLE pass: ifcvt Date: Tue, 07 Mar 2023 10:48:32 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dkm at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D109005 --- Comment #17 from Marc Poulhi=C3=A8s --- FWIW, can confirm the above fix works for the small reproducer (x86_64-linu= x) /* Bail out if the representative is BLKmode as we will not be able to vectorize this. */ - if (TYPE_MODE (TREE_TYPE (rep_decl)) =3D=3D E_BLKmode) + if (!is_gimple_reg_type (TREE_TYPE (rep_decl))) return NULL_TREE;=