From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19975 invoked by alias); 23 Feb 2008 06:56:12 -0000 Received: (qmail 19879 invoked by uid 48); 23 Feb 2008 06:55:29 -0000 Date: Sat, 23 Feb 2008 06:56:00 -0000 Message-ID: <20080223065529.19878.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/35308] Straight line strength reduction In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "xinliangli at gmail dot com" 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: 2008-02/txt/msg02402.txt.bz2 ------- Comment #2 from xinliangli at gmail dot com 2008-02-23 06:55 ------- (In reply to comment #1) > Sometimes doing the strength reduction actually increases the code size. Think > on targets which have auto increments. > > *** This bug has been marked as a duplicate of 22586 *** > Itanium supports address post increment. The postInc synthesis phase should not be affected by the strengh reduced address computation code. When this is fixed by the PRE framework, make sure the conditional increment case is also covered: a[i] = i*g; if (...) { i++; } a[i] += ... ... = i*g; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35308