From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 95CD43858D26; Mon, 7 Nov 2022 20:02:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 95CD43858D26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667851332; bh=u1Pv5786Pyt3DHSMqPhmJPm4rvgKoBl8soxBWkh3GrE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QBzWJO6CekhW779RB1HeJLOiKK+Rl8kWYk9stLWyIwNDIXet908ZZh+Pje9J0Pgqp umgr7aZl5B21ZO4si+Y+Tj7fLwX1TTSOlYscBtLfm7i8QI88fWxsPG5NZUxOjZw6Dm Scco8YZXxVDNXqt8gTw1BKK+LI7583DVA3VPxcfQ= From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/55157] Missed VRP with != 0 and multiply Date: Mon, 07 Nov 2022 20:02:12 +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: 4.8.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED 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: bug_status resolution 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=3D55157 Aldy Hernandez changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #14 from Aldy Hernandez --- (In reply to Aldy Hernandez from comment #11) > Created attachment 53827 [details] > revised patch in testing (In reply to Aldy Hernandez from comment #4) > We have a variety of ways of fixing this: > 1. Improve the range-op entry for MULT_EXPR. > 2. Handle nonzero bits in the relational operators. > 3. Reflect the nonzero bits in the actual range for trivial masks. I'm going to close this PR as fixed, though I'd still like to do #3 as discussed if we can accept a performance degradation, or come up with a more efficient way of doing so. Either way, that is irrelevant to the PR per se. Fixed in trunk.=