From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12714 invoked by alias); 6 Oct 2006 19:07:54 -0000 Received: (qmail 12690 invoked by uid 48); 6 Oct 2006 19:07:45 -0000 Date: Fri, 06 Oct 2006 19:07:00 -0000 Message-ID: <20061006190745.12689.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug rtl-optimization/29294] 4.1, 4.2 (possibly 4.0?) not finding postmodify address mode on ARM In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "eplondke at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-10/txt/msg00522.txt.bz2 List-Id: ------- Comment #6 from eplondke at gmail dot com 2006-10-06 19:07 ------- Changing the cost of (REG) to 1 fixes 4.1 but not 4.2, it seems. In 4.2, the RTL optimization does not combine ldr r2, [r1, #0] ldr r3, [r0, #0] add r0, r0, #4 add r1, r1, #4 into ldr r2, [r1], #4 ldr r3, [r0], #4 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29294