From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11566 invoked by alias); 3 Jan 2013 14:29:08 -0000 Received: (qmail 11325 invoked by uid 48); 3 Jan 2013 14:28:42 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/55863] New: Fails to fold (i + 2) - (i + 1) to 1 Date: Thu, 03 Jan 2013 14:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg00177.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55863 Bug #: 55863 Summary: Fails to fold (i + 2) - (i + 1) to 1 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned@gcc.gnu.org ReportedBy: rguenth@gcc.gnu.org For (analyze_overlapping_iterations (chrec_a = {pretmp_1529 + 1, +, 1}_20) (chrec_b = {pretmp_1529 + 2, +, 1}_20) The SIV test currently fails because when computing the difference between the CHRECs we compute pretmp_1529 + 2 + ~pretmp15_29. This is because when computing A - B we check if B is easy to negate - which X + 1 is - and compute it as A + ~X which association then fails to optimize. This makes dependence tests of this kind fail.