From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B33F23844008; Wed, 14 Oct 2020 15:47:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B33F23844008 From: "amacleod at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/97381] [11 Regression] ice error: invalid types in nop conversion Date: Wed, 14 Oct 2020 15:47:11 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amacleod at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.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 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: Wed, 14 Oct 2020 15:47:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97381 --- Comment #8 from Andrew Macleod --- in particular: _2 =3D (int) c_8; _3 =3D _2 * 148372120; _4 =3D a.0_1 / _3; if (_4 !=3D 0) we do not wind back thru divides at the moment (unless they are exact divid= es) so when processing the false edge to calculate a range for c_8 (which feeds into a phi eventually) so when processing=20 [0, 0] =3D a.0_1 / _3 and trying to calculate a range for _3 , range-ops was returning false, indicating no further processing should be done (so we wont know anything e= lse about c_8) By ignoring that, and continuing to process _3 =3D _2 * 148372120; with a LHS that was garbage, we were getting some less than ideal results a= s we continued back to the cast and figured a value for c_8.=