From patchwork Mon Oct 23 11:26:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 829258 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-464742-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="bQLGRNbr"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yLDcl0C0Yz9t5C for ; Mon, 23 Oct 2017 22:26:30 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=default; b=opDLyTS6eURPtkKzgD6RqkmH34Cy1 fSDFVBWX/C5iTotxQMCsa21RTbnlOR4E8yLn13XnfggCcHKTrFQpwJBvGJ5N361x ImrIZGMpwBupXvMCSkZH0tgg4jgNcJCf/XxAbX8HEoWH/Alg+KsGc9OWI3ccEsR5 sy1Gno8JjyIiuU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:references:date:in-reply-to:message-id:mime-version :content-type; s=default; bh=xYdXBlO1HrvyDdiXOsPqq8N1SaY=; b=bQL GRNbreDzvks52QJwlYu/7j8u94Mrl7lgoWVr1PNIfTHbk4CWg9E+QyLUa7Wbh1am jdKyDL1LowCr0+Fx3gqDbf6gd6vquNRJwkoNEF+X4KBEXygnS1c8zFpzflkO9HNu AOTnnWG1YABtelrdBDWeKliVkR7jLPtEAa+uEJ0I= Received: (qmail 69598 invoked by alias); 23 Oct 2017 11:26:24 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 69574 invoked by uid 89); 23 Oct 2017 11:26:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wm0-f51.google.com Received: from mail-wm0-f51.google.com (HELO mail-wm0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 23 Oct 2017 11:26:21 +0000 Received: by mail-wm0-f51.google.com with SMTP id r68so9154321wmr.3 for ; Mon, 23 Oct 2017 04:26:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:mail-followup-to:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=+nj7YKi4wFAeU5kaogHzw79Gm6aZMa0nexcFZQwK2E0=; b=sEaECcMRI1zwT+Xk9De7kmNMHH1FQBm38djeDU/EddeK0if6ot5Ga0X8JcLv4FJuyU x+x0zppwhcZB6XE1L0QC9jrRhu+Nm3bpweDqtptGUHoLdjyXLufMJeuhRPEduGGRjEzg OHc2hn+mvYIqMwexai9dJoWPW3dbmjigviZh6C/qWFe6BZaAko/Q7MKXHXAFlJeJbWmK iJmm0ZiPU2tiZLP/Dsg06W/4wpigurkSWA7E7CbeE+8trse1o9EXL9pBNmxuJHuwAq/a kgXVvJ9oFE9x+k8r1jcVYt+lIjOKpgKmUzPYrRRx4E99dUy7473gw8W95Jt0OPk8iLp7 040A== X-Gm-Message-State: AMCzsaVcqWMx/VmpAtsLiVyY1aZUs+NjPEsjIeVgSs2pvH4B17WVAXBx MEB2KbJ0G83AZbGd6oEX4x7DWj9R7g4= X-Google-Smtp-Source: ABhQp+SJMl05UYBVUKLA+s2O/QTtDwiM08zXJJBrhuA1vMylFZZDdkK63ubXWGKuLQR+gBVS2+/CJg== X-Received: by 10.28.29.130 with SMTP id d124mr5748941wmd.73.1508757979414; Mon, 23 Oct 2017 04:26:19 -0700 (PDT) Received: from localhost ([2.26.27.199]) by smtp.gmail.com with ESMTPSA id f16sm6962579wra.75.2017.10.23.04.26.18 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Oct 2017 04:26:18 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org Subject: [15/nn] Use more specific hash functions in rtlhash.c References: <87wp3mxgir.fsf@linaro.org> Date: Mon, 23 Oct 2017 12:26:18 +0100 In-Reply-To: <87wp3mxgir.fsf@linaro.org> (Richard Sandiford's message of "Mon, 23 Oct 2017 12:14:36 +0100") Message-ID: <874lqqw1et.fsf@linaro.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Avoid using add_object when we have more specific routines available. 2017-10-23 Richard Sandiford Alan Hayward David Sherwood gcc/ * rtlhash.c (add_rtx): Use add_hwi for 'w' and add_int for 'i'. Index: gcc/rtlhash.c =================================================================== --- gcc/rtlhash.c 2017-02-23 19:54:03.000000000 +0000 +++ gcc/rtlhash.c 2017-10-23 11:47:20.120201389 +0100 @@ -77,11 +77,11 @@ add_rtx (const_rtx x, hash &hstate) switch (fmt[i]) { case 'w': - hstate.add_object (XWINT (x, i)); + hstate.add_hwi (XWINT (x, i)); break; case 'n': case 'i': - hstate.add_object (XINT (x, i)); + hstate.add_int (XINT (x, i)); break; case 'V': case 'E':