From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1553 invoked by alias); 13 Jul 2009 09:51:04 -0000 Received: (qmail 1296 invoked by uid 48); 13 Jul 2009 09:50:47 -0000 Date: Mon, 13 Jul 2009 09:51:00 -0000 Message-ID: <20090713095047.1295.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/40730] redundant memory load In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" 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: 2009-07/txt/msg01007.txt.bz2 ------- Comment #2 from rguenth at gcc dot gnu dot org 2009-07-13 09:50 ------- -fgcse-las should do the trick. Note that PRE would do this kind of optimization on the tree-level, but it is disabled with -Os (so is gcse). : D.1614_2 = p2_1(D)->front; p1_3(D)->head = D.1614_2; goto ; : D.1616_8 = D.1615_4->next; p1_3(D)->head = D.1616_8; : D.1615_4 = p1_3(D)->head; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40730