From patchwork Fri Sep 15 01:31:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kugan Vivekanandarajah X-Patchwork-Id: 112669 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp71874qgf; Thu, 14 Sep 2017 18:32:02 -0700 (PDT) X-Received: by 10.98.32.92 with SMTP id g89mr23083789pfg.285.1505439122695; Thu, 14 Sep 2017 18:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505439122; cv=none; d=google.com; s=arc-20160816; b=XA1mzKq88Z36CTVbxbEcg0FjKgpgLNp82+mMwqIju0ZHT6e7sOrlFUlSmJTlBv65lj BuuoWQibQ9hGHrt1H8zyqUCw9JiLELch4rBxdzGeTYfWu4h7KKSZlYo9s9rGpgElaY5G q04LADBWQP8ngBo8VsIKHgItOXs3uDwwASxxIsihdYjdjAY+gJaXn+EoLItef1X80DUq 9O6nyJvMKEHr5GO9be6XbI5JnWi2/zo7lOxIf5YVHrqWfC3B2guoLA1kwpiHvvXvRCc5 W0uMLHvO71wapokMNhuaULKyZTemtt+iXryeg31PuL05JwrXCT3/esE1rWcBtzauW9qi w1ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:delivered-to:sender :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=TvoLuQ22btUofKk1Wiswx3rM2VGGwSf8HvNjU0iGHFA=; b=P/KRyzGbL1dI04eO2tlrUvku1HiOfQf6ys7MgcWA6dVQHxtbITgjbHcOBLZzhK8PXe Rq8EGOwDr4I9xt3ki1FRlJGIo9fgSWhQnP/ckhM822kTzrOiGlxxWxfpjjvsdf8nkd5C /Cs81CRxGANmx4xLREWtjATcdQ0AfTDhnrxfOmLEjhjokHs3xtztJPMs31SgbKQkGe6h aHJKe3Led/jCqLwj0Hh0Pu7ZShYC7QzMP1vFTvFDD7CLLsKvp63+WO6LwF0bU4T0Oxlb KBWBPNOc6oI9gkjyYsHuM8YcbYBpzqFGU/FIv8t/sAwMzxh6hxgU9AQ4C4r3RCbLw/Qm hqRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=VLc2v3JT; spf=pass (google.com: domain of gcc-patches-return-462192-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-462192-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 e1si13342932ple.320.2017.09.14.18.32.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Sep 2017 18:32:02 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-462192-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=VLc2v3JT; spf=pass (google.com: domain of gcc-patches-return-462192-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-462192-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 :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=jl+5N3uyRxllAgQ8VJWZWwzdq9rn14/CJDeNsua4ttVYPG siOrM08VdA65g104I5xWEF3tv/xSNUMihrUXGHdcDuDP0JzLwpazhoziozwE3xeu WjEE6H6jQKJ18Ejdw5juPu4GUS5XdNdyF11+bMThHcmxalr6sABhDboOs8eCE= 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 :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=uG0BpAt4I7lIuYDVo4ICo6wkQfk=; b=VLc2v3JTEFYKyg9TQpV1 6exyL4T1aqgxtXVtmbpy21jddBLD5YKdxtMVX+PpFLC5JvjTUmArJoutTaGA7VL9 rUwaeTdN2fhAVGrWVokIHgkAtWYy7nyH9up5Q1G41PPvuj0HIGX49Dj2qvJttDHL O06+slAAtl8jv46f/NLaWfA= Received: (qmail 113741 invoked by alias); 15 Sep 2017 01:31:48 -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 113728 invoked by uid 89); 15 Sep 2017 01:31:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, 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-qk0-f176.google.com Received: from mail-qk0-f176.google.com (HELO mail-qk0-f176.google.com) (209.85.220.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Sep 2017 01:31:45 +0000 Received: by mail-qk0-f176.google.com with SMTP id u73so937232qkl.12 for ; Thu, 14 Sep 2017 18:31:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pwJgCnFiTMOyq5E8lVO2MdpkyuBGDkKpIBeYP6JmDSE=; b=Kq4zR80YgzCpnp8cwAMbXzqImfIfNlygK5tGP/REC5btwnB/H6SUUJ/kx0SLHT3aNj inwL8q/OvUutkFGTYLjh8b7rHmYJFi9Ut/sjHAXmgYNRDUx8WDhXZYvMVqyQUXRp9RwR VFU9ie7R6K6FhuGQgEX/VtxN7G/aYzCc/YYWedE2jsgNywlkomMtxdkTQ4NU/Nd0wEBY ZLjn6jswxeI5jUD2Fpg4sHwSDGWs1PqmVkGo0SrhofjuaQp0O4ayJ0EBgot8LwzXustq Ce6caWM4EuueCzvIKrGhyMmuU1TQeyEU8QIuUT25DjwsTONjsqenDxSwA0B8XHanmnLv u0zg== X-Gm-Message-State: AHPjjUjOMH56lQW/ZtCM8b4e9brzfj+kQ3UDKCr5v27SNBG4EFWuGSKO K+g5ufLTdD7jDbmCIOQA7D3xGFn4bTRryvUQeAZ+VkU+D8Y= X-Google-Smtp-Source: AOwi7QCOqj7VCsRqgW+YYXlSFXZxfTI3WYFahWuyUFVJa9YeJr2mvdcOySoeaMDFpzZEBNnonbxn6K/FaTnwT+s82HI= X-Received: by 10.55.111.133 with SMTP id k127mr5668249qkc.182.1505439103766; Thu, 14 Sep 2017 18:31:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.37.211 with HTTP; Thu, 14 Sep 2017 18:31:43 -0700 (PDT) From: Kugan Vivekanandarajah Date: Fri, 15 Sep 2017 11:31:43 +1000 Message-ID: Subject: [RFC][PATCH 4/5] Change iv_analyze_result to take const_rtx. To: "gcc-patches@gcc.gnu.org" X-IsSubscribed: yes Change iv_analyze_result to take const_rtx. This is just to make the next patch compile. No functional changes: Thanks, Kugan gcc/ChangeLog: 2017-09-12 Kugan Vivekanandarajah * cfgloop.h (iv_analyze_result): Change 2nd param from rtx to const_rtx. * df-core.c (df_find_def): Likewise. * df.h (df_find_def): Likewise. * loop-iv.c (iv_analyze_result): Likewise. >From 5d50c51c520d881104d44603514088a19e14e652 Mon Sep 17 00:00:00 2001 From: Kugan Vivekanandarajah Date: Fri, 25 Aug 2017 10:49:50 +1000 Subject: [PATCH 4/5] Change iv_analyze_result to take const_rtx --- gcc/cfgloop.h | 2 +- gcc/df-core.c | 2 +- gcc/df.h | 2 +- gcc/loop-iv.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h index e7ffa23..2308e7a 100644 --- a/gcc/cfgloop.h +++ b/gcc/cfgloop.h @@ -473,7 +473,7 @@ struct GTY(()) niter_desc extern void iv_analysis_loop_init (struct loop *); extern bool iv_analyze (rtx_insn *, rtx, struct rtx_iv *); -extern bool iv_analyze_result (rtx_insn *, rtx, struct rtx_iv *); +extern bool iv_analyze_result (rtx_insn *, const_rtx, struct rtx_iv *); extern bool iv_analyze_expr (rtx_insn *, rtx, machine_mode, struct rtx_iv *); extern rtx get_iv_value (struct rtx_iv *, rtx); diff --git a/gcc/df-core.c b/gcc/df-core.c index 1e84d4d..ecb6b15 100644 --- a/gcc/df-core.c +++ b/gcc/df-core.c @@ -1951,7 +1951,7 @@ df_bb_regno_last_def_find (basic_block bb, unsigned int regno) DF is the dataflow object. */ df_ref -df_find_def (rtx_insn *insn, rtx reg) +df_find_def (rtx_insn *insn, const_rtx reg) { df_ref def; diff --git a/gcc/df.h b/gcc/df.h index 07fd334..8861cc9 100644 --- a/gcc/df.h +++ b/gcc/df.h @@ -979,7 +979,7 @@ extern void df_check_cfg_clean (void); #endif extern df_ref df_bb_regno_first_def_find (basic_block, unsigned int); extern df_ref df_bb_regno_last_def_find (basic_block, unsigned int); -extern df_ref df_find_def (rtx_insn *, rtx); +extern df_ref df_find_def (rtx_insn *, const_rtx); extern bool df_reg_defined (rtx_insn *, rtx); extern df_ref df_find_use (rtx_insn *, rtx); extern bool df_reg_used (rtx_insn *, rtx); diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c index 896fe0b1..745b613 100644 --- a/gcc/loop-iv.c +++ b/gcc/loop-iv.c @@ -1198,7 +1198,7 @@ iv_analyze (rtx_insn *insn, rtx val, struct rtx_iv *iv) /* Analyzes definition of DEF in INSN and stores the result to IV. */ bool -iv_analyze_result (rtx_insn *insn, rtx def, struct rtx_iv *iv) +iv_analyze_result (rtx_insn *insn, const_rtx def, struct rtx_iv *iv) { df_ref adef; -- 2.7.4