From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17355 invoked by alias); 17 May 2011 20:43:02 -0000 Received: (qmail 17343 invoked by uid 22791); 17 May 2011 20:43:01 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_KD X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 May 2011 20:42:47 +0000 From: "rakdver at kam dot mff.cuni.cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/48702] [4.6/4.7 Regression] optimization regression with gcc-4.6 on x86_64-unknown-linux-gnu X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rakdver at kam dot mff.cuni.cz X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.1 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 17 May 2011 20:53:00 -0000 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: 2011-05/txt/msg01402.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48702 --- Comment #17 from rakdver at kam dot mff.cuni.cz 2011-05-17 20:18:39 UTC --- > This is not really heuristic -- it prevents compiler from generating code in > ivopt that violates the aliasing assumption. no, it does not. For example, you only consider the case whent the base of the memory reference is addr_expr, and when the step is negative. However, ivopts may generate "pointers" outside of the memory objects in other cases as well; and if those get used in mem_refs (where the computations are currently interpreted according to the pointer arithmetics rules, for the purpose of alias analysis), this leads to misscompilations.