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: 814016 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-462192-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="qhee0Bce"; 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 3xtdDF4ZfHz9t2V for ; Fri, 15 Sep 2017 11:31:57 +1000 (AEST) 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=GtTcAS5qqqSir6/JyWKk1YSvXxxgiJMDn51PMrwe4hAigy g80NvLI1LRdUW/jm5WBLXiQ7tqS1hqCHgg954pE554mcX+mb95r9Xmr/CBihLMyU pynKuTD6nSmOqNarMpGsA2kY8my67JEJWTewar0f9bgMN4voQSrWvJMkQBTVQ= 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=qhee0Bce5BDnlEUf4K6l piMF8zSmbcK5E/geJztVzbatbFysJr9dyKEKB/YRVjTdn/hEQYCh4PE70l8CcWtW rHIxRTh3l7dZFrkY0F21CAvLaoT+07CbR6EfW0tsXAvjJstBHkJIJqRNCKfBIsvg HNOIAuD2R6BOMLPuXc1Wd8M= 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