From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 55C953857C48; Mon, 13 Feb 2023 20:27:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 55C953857C48 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676320021; bh=TWRsHlhSI5AKC0LM+7joPx6nPXilkstQ7FClkvjGjFU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ckd3h6Kpy7zvlMs5yVwwJbiuakF0e9EhF+T5lwZqfEQDfqXm1UUXFMccrfNlZktmy EpptvC1PPna6ccdupOZWjnSBv9TLTetWPUlWkLEcsYRGCJFn5z4e66etfNpErMRe+S j/7Dz1JSjMa0/7OrucvU6yJtqxIaLi3eHOpXaDMc= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/108757] We do not simplify (a - (N*M)) / N + M -> a / N Date: Mon, 13 Feb 2023 20:27:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also component 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=3D108757 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D37451 Component|tree-optimization |rtl-optimization --- Comment #14 from Andrew Pinski --- Oh yes pr 37451 . There are a few other related ones referenced now too. But basically it is doloop which is introducing this. The original example does not correspond to the example in given by the eig= en folks either..=