From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7699 invoked by alias); 21 Nov 2014 10:17:54 -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 7654 invoked by uid 48); 21 Nov 2014 10:17:51 -0000 From: "rguenth 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:17: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: rguenth 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/msg02388.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63679 --- Comment #10 from Richard Biener --- Ok, so I have a patch that works until we get to try constant folding a vector load from an array of elements. There both native_encode_expr and fold_ctor_reference fail (the first because it doesn't handle CONSTRUCTORs yet the latter because it doesn't handle multi-field/index results). The idea was to get CONSTRUCTOR support into native_encode_expr which would then handle the fully-constant cases (but not initializers with constant addresses like &global-var). Of course it wouldn't help as FRE isn't run late. Hah.