From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12412 invoked by alias); 21 Nov 2014 10:54:01 -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 Received: (qmail 12351 invoked by uid 48); 21 Nov 2014 10:53:56 -0000 From: "belagod at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/63679] [5.0 Regression][AArch64] Failure to constant fold. Date: Fri, 21 Nov 2014 10:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: belagod at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg02393.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63679 --- Comment #13 from Tejas Belagod --- (In reply to rguenther@suse.de from comment #12) > On Fri, 21 Nov 2014, belagod at gcc dot gnu.org wrote: > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63679 > > > > --- Comment #11 from Tejas Belagod --- > > (In reply to Andrew Pinski from comment #8) > > > (In reply to Tejas Belagod from comment #7) > > > > I tried this, but it still doesn't seem to fold for aarch64. > > > > > > > > So, here is the DOM trace for aarch64: > > > > > > > > Optimizing statement a = *.LC0; > > > > > > Why do we get LC0 in the first place? It seems like it is happening because > > > of some cost model issue with MOVECOST. > > > > > > > Can the cost model affect something as early as gimple? > > Through CLEAR_RATIO and can_move_by_pieces (and for complex stuff > initializer_constant_valid_p). I think it's mostly can_move_by_pieces > here. Ah, jgreenhalgh just did some move_by_pieces restructuring recently.