From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8A380385771A; Thu, 15 Jun 2023 20:52:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A380385771A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686862377; bh=QuQ4zyr4dT6Id5/RFNYUThw9WTfKDM97pkduuPq/X+0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BKViRd7he9Ew1ETi9I2cvN+RO7l+yc5I6cZF9dS39VY/NmNC5FSMvLj+kVZ1lMXM9 ca/t8iHyH8WMGfgWBjPi77YpfLKlaxS+LsjXkQUG8Sc6+0PfMApEnVV0Y+muf0L/QI JybrGxBXvAm0vSe5ZeiJG6I3AXL6W5s48dtoiDhE= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110271] [14 Regression] UICE on pycryptodome-3.17.0 during GIMPLE pass: widening_mul: in gsi_replace, at gimple-iterator.cc:437 Date: Thu, 15 Jun 2023 20:52: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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: 14.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=3D110271 --- Comment #4 from Jakub Jelinek --- The problem is that I thought match_arith_overflow returns true if it repla= ced something, but that is not the case, it only returns true for the BIT_NOT_E= XPR case when it removed the stmt. So, I think the right test for whether match_arith_overflow actually replac= ed something is whether gsi_stmt (gsi) =3D=3D stmt.=