From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16088 invoked by alias); 10 Jun 2012 17:51:08 -0000 Received: (qmail 16080 invoked by uid 22791); 10 Jun 2012 17:51:07 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_NO X-Spam-Check-By: sourceware.org Received: from dair.pair.com (HELO dair.pair.com) (209.68.1.49) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sun, 10 Jun 2012 17:50:54 +0000 Received: (qmail 58884 invoked by uid 20157); 10 Jun 2012 17:50:53 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 10 Jun 2012 17:50:53 -0000 Date: Sun, 10 Jun 2012 17:58:00 -0000 From: Hans-Peter Nilsson To: Oleg Endo cc: Sandra Loosemore , gcc-patches@gcc.gnu.org Subject: inc-dec (was: Re: [RFC, ivopts] fix bugs in ivopts address cost computation) In-Reply-To: <1339345901.2300.30.camel@yam-132-YW-E178-FTW> Message-ID: References: <4FCE3512.7070607@codesourcery.com> <1339345901.2300.30.camel@yam-132-YW-E178-FTW> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-06/txt/msg00549.txt.bz2 On Sun, 10 Jun 2012, Oleg Endo wrote: > I've tried some of the cases mentioned in > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50749 > with Sandra's patch applied. Unfortunately it didn't help much. But thanks for checking! > There > seem to be other things going wrong with auto-inc-dec. Yeah, probably in more than one place. > BTW, auto-inc-dec uses 'set_src_cost' in 'attempt_change' to determine > the address costs. At least the SH target will not respond to that > properly. I was thinking of adding something to sh_rtx_costs to invoke > sh_address_cost as a fix for that, but on the other hand I was wondering > why the target's address cost function isn't used in auto-inc-dec > directly ... Sounds like a bug. TBH, I haven't dug into the real reason why auto-inc-dec-generation is still poor (or whether it by magic has improved dramatically recently), because every so often there's some effort to improve that, alas I don't remember seeing any improvement mentioned for any target I have interest in. brgds, H-P