From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15359 invoked by alias); 14 Nov 2016 08:01:48 -0000 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 Received: (qmail 14963 invoked by uid 89); 14 Nov 2016 08:01:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_FAIL autolearn=no version=3.3.2 spammy=2016-11-14 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 14 Nov 2016 08:01:36 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6CCm-0006gr-8R for gcc-patches@gcc.gnu.org; Mon, 14 Nov 2016 03:01:35 -0500 Received: from [2600:3c03::f03c:91ff:fe6e:c625] (port=48154 helo=paperclip.tbsaunde.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6CCm-0006fe-5p for gcc-patches@gcc.gnu.org; Mon, 14 Nov 2016 03:01:28 -0500 Received: from keg.corp.tor1.mozilla.com (unknown [IPv6:2607:f0c8:8000:80e0:56ee:75ff:fe52:afb9]) by paperclip.tbsaunde.org (Postfix) with ESMTPSA id F063AC1A9 for ; Mon, 14 Nov 2016 08:01:27 +0000 (UTC) From: tbsaunde+gcc@tbsaunde.org To: gcc-patches@gcc.gnu.org Subject: [PATCH 10/11] make dead_or_set_{,regno_}p take rtx_insn * Date: Mon, 14 Nov 2016 08:01:00 -0000 Message-Id: <20161114080934.19056-11-tbsaunde+gcc@tbsaunde.org> In-Reply-To: <20161114080934.19056-1-tbsaunde+gcc@tbsaunde.org> References: <20161114080934.19056-1-tbsaunde+gcc@tbsaunde.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c03::f03c:91ff:fe6e:c625 X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg01295.txt.bz2 From: Trevor Saunders gcc/ChangeLog: 2016-11-14 Trevor Saunders * rtl.h: Adjust prototype. * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *. (dead_or_set_regno_p): Likewise. --- gcc/rtl.h | 4 ++-- gcc/rtlanal.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/rtl.h b/gcc/rtl.h index efb8127..03c1157 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -3007,8 +3007,8 @@ extern void find_all_hard_regs (const_rtx, HARD_REG_SET *); extern void find_all_hard_reg_sets (const rtx_insn *, HARD_REG_SET *, bool); extern void note_stores (const_rtx, void (*) (rtx, const_rtx, void *), void *); extern void note_uses (rtx *, void (*) (rtx *, void *), void *); -extern int dead_or_set_p (const_rtx, const_rtx); -extern int dead_or_set_regno_p (const_rtx, unsigned int); +extern int dead_or_set_p (const rtx_insn *, const_rtx); +extern int dead_or_set_regno_p (const rtx_insn *, unsigned int); extern rtx find_reg_note (const_rtx, enum reg_note, const_rtx); extern rtx find_regno_note (const_rtx, enum reg_note, unsigned int); extern rtx find_reg_equal_equiv_note (const rtx_insn *); diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 75dde3d..9cd24bb 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -1943,7 +1943,7 @@ note_uses (rtx *pbody, void (*fun) (rtx *, void *), void *data) by INSN. */ int -dead_or_set_p (const_rtx insn, const_rtx x) +dead_or_set_p (const rtx_insn *insn, const_rtx x) { unsigned int regno, end_regno; unsigned int i; @@ -2017,7 +2017,7 @@ covers_regno_p (const_rtx dest, unsigned int test_regno) /* Utility function for dead_or_set_p to check an individual register. */ int -dead_or_set_regno_p (const_rtx insn, unsigned int test_regno) +dead_or_set_regno_p (const rtx_insn *insn, unsigned int test_regno) { const_rtx pattern; -- 2.9.3.dirty