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: 116702 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4530998qgn; Mon, 23 Oct 2017 04:26:35 -0700 (PDT) X-Received: by 10.101.65.6 with SMTP id w6mr11671578pgp.365.1508757995693; Mon, 23 Oct 2017 04:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508757995; cv=none; d=google.com; s=arc-20160816; b=er0CuR1Y7wwTiehhhrzAR7/kkvUr/Weu1ChYrJcMmjfYvfmc9TZtcL+L+tWT46TG5O jf6Lb5xkPJNTJHnZU6tKqdz6LIgN9RnBrLJktYq9Ei980v1SLc+UZRX8MwYujJaZkqwb yjU8YydAJZRgqUTMJgAVfoWKyyBqsUfVSHxfrG/453rustdupPjRhxZ/cI+tqAzI90eB DdZt++GoXvaOl/c60oMKVpvd3o6DoT2FaV7F+U0b7QdO3f48Qe2jrikIneqTAOHPmAo1 BtE9iYdPz9rCA9OmVp5R2kBYO0TpaxB/LPckhNRvjb4TGgP30p1Vu2V6F/4Txn6k9d/x EDaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:mail-followup-to:to:from:delivered-to:sender:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=+nj7YKi4wFAeU5kaogHzw79Gm6aZMa0nexcFZQwK2E0=; b=koAU3qNdnQGEByOA+mMHuMi/fpZ6Zq1vYJ/kAglxPUeFnK2oOQI65lA/fxslKJHzAt 4feT4a8PT8gx7ryrKODOld8iDrlK2A40NHDDsq3sc4/0xjvaOX7/LwD6jaJhNamtyK0H BdjCzwhafos1a4c2jgjsUKrh75G/AbiodexEiZGeE7PtzuL3L+Z1P2yFlr4Khv98zKFl Ua8fpSS1Sf4usQirmIJFdLsy0Tu153kl0hqoqUbvdtyKFhUVW75nXt5wbts5WN3DuuIQ kMesiiyVrQmqqYI3TYoP3Qfiho6hWu/t39oxJMci3KoDwz4sJVFPwSlzarHM/6tWuWE6 5pHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=nKDchvtV; spf=pass (google.com: domain of gcc-patches-return-464742-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-464742-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id o3si3924386pld.317.2017.10.23.04.26.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Oct 2017 04:26:35 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-464742-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=nKDchvtV; spf=pass (google.com: domain of gcc-patches-return-464742-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-464742-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=IG97XQXQlchiSYILNjjWDOjRyRQ4Y +ynY6IdeyW5YT5oQXlXOgjwZbeHr/q5zrLmaP2aD0/KH3XlO/txcS1z1aAvOW05L a7DC9vEH4XJ74wjoV613S0M2qUFw86WvL5wliDyTc25bTMohBjEwlZ8Gqis0Axki CTa+izynEb/npA= 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=nKD chvtVYXjNfQYMhLwyt0ZKv6pWdV8gtD89TaClrWd3B8cUsumS17sB4U6+TvOe+DM 4cdWvUH6/42opz2TxSl2Z/Mm/zJAZ+4DdVy+PxKHOwtr1+CZ+Jrs9xfJdJI/57BJ L019azDD/+ZvdqPgLi230m35Mc6BXAZfAP/aNI2o= 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':