From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30550 invoked by alias); 30 Jul 2012 22:36:30 -0000 Received: (qmail 30410 invoked by uid 22791); 30 Jul 2012 22:36:28 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 Jul 2012 22:36:12 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6UMaBgt014582 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 30 Jul 2012 18:36:11 -0400 Received: from anchor.twiddle.home (vpn-237-48.phx2.redhat.com [10.3.237.48]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q6UMaB9X001854; Mon, 30 Jul 2012 18:36:11 -0400 Message-ID: <50170C5A.2080207@redhat.com> Date: Mon, 30 Jul 2012 22:42:00 -0000 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Nathan Froyd CC: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] shrink storage for target_expmed cost fields References: <1343682326-6963-1-git-send-email-froydnj@mozilla.com> In-Reply-To: <1343682326-6963-1-git-send-email-froydnj@mozilla.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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-07/txt/msg01523.txt.bz2 On 07/30/2012 02:05 PM, Nathan Froyd wrote: > * expmed.h (NUM_MODE_VECTOR_INT): Define. > (struct expmed_op_cheap, struct expmed_op_costs): New structures. > (struct target_expmed): Convert x_mul_highpart_cost and > x_mul_widen_cost fields to be indexed by integer modes. > Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be > of type struct expmed_op_cheap. Convert other cost fields to be > of type struct_expmed_op_costs. > (mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new > indexing of respective fields. > (expmed_op_cheap_ptr): New function. > (sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it. > (expmed_op_cost_ptr): New function. > (add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr, > shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr, > sdiv_cost_ptr, udiv_cost_ptr): Call it. Ok. r~