From bacca1274cfc118af4dae30221582b9b2de7a6bb Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Mon, 21 Nov 2016 06:16:18 +0000 Subject: [PATCH] make dead_or_set_{,regno_}p take rtx_insn * gcc/ChangeLog: 2016-11-21 Trevor Saunders * rtl.h: Adjust prototype. * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *. (dead_or_set_regno_p): Likewise. From-SVN: r242657 --- gcc/ChangeLog | 6 ++++++ gcc/rtl.h | 4 ++-- gcc/rtlanal.c | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7be34625574..bcad2c5ff54 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-11-21 Trevor Saunders + + * rtl.h: Adjust prototype. + * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *. + (dead_or_set_regno_p): Likewise. + 2016-11-21 Trevor Saunders * rtl.h: Adjust prototype. diff --git a/gcc/rtl.h b/gcc/rtl.h index 1b7ebb476d6..21f48600deb 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); diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 7467c4e2412..7b8ff24fe34 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -1945,7 +1945,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; @@ -2019,7 +2019,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.30.2