From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29364 invoked by alias); 5 Aug 2015 17:10:54 -0000 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 Received: (qmail 29355 invoked by uid 89); 5 Aug 2015 17:10:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 05 Aug 2015 17:10:53 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 7717FC6579 for ; Wed, 5 Aug 2015 17:10:52 +0000 (UTC) Received: from greed.delorie.com ([10.3.113.9]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t75HApiS005452 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 5 Aug 2015 13:10:51 -0400 Received: from greed.delorie.com (greed.delorie.com [127.0.0.1]) by greed.delorie.com (8.14.4/8.14.4) with ESMTP id t75HAprS000679; Wed, 5 Aug 2015 13:10:51 -0400 Received: (from dj@localhost) by greed.delorie.com (8.14.4/8.14.4/Submit) id t75HAoDi000677; Wed, 5 Aug 2015 13:10:50 -0400 Date: Wed, 05 Aug 2015 17:10:00 -0000 Message-Id: <201508051710.t75HAoDi000677@greed.delorie.com> From: DJ Delorie To: Nick Clifton CC: gcc-patches@gcc.gnu.org In-reply-to: <87io8tj10f.fsf@redhat.com> (message from Nick Clifton on Wed, 05 Aug 2015 14:52:32 +0100) Subject: Re: RFA: RL78: Fix multiply costs when optimizing for size References: <87io8tj10f.fsf@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00305.txt.bz2 > OK to apply ? Ok. Thanks! > gcc/ChangeLog > 2015-08-05 Nick Clifton > > * config/rl78/rl78.c (rl78_rtx_costs): Treat MULT insns as cheap > if optimizing for size. > > Index: gcc/config/rl78/rl78.c > =================================================================== > RCS file: /cvs/cvsfiles/gnupro/gcc/config/rl78/rl78.c,v > retrieving revision 1.12.6.15 > diff -u -3 -p -r1.12.6.15 rl78.c > --- gcc/config/rl78/rl78.c 29 Jul 2015 12:24:04 -0000 1.12.6.15 > +++ gcc/config/rl78/rl78.c 30 Jul 2015 15:20:10 -0000 > @@ -4161,7 +4161,9 @@ static bool rl78_rtx_costs (rtx x, > switch (code) > { > case MULT: > - if (RL78_MUL_G14) > + if (! speed) > + * total = COSTS_N_INSNS (5); > + else if (RL78_MUL_G14) > *total = COSTS_N_INSNS (14); > else if (RL78_MUL_G13) > *total = COSTS_N_INSNS (29); >