From: Trevor Saunders <[email protected]>
gcc/ChangeLog:
* rtl.h (find_reg_equal_equiv_note): Take a const rtx_insn *.
* rtlanal.cc (find_reg_equal_equiv_note): Likewise.
* cse.cc (count_reg_usage): Pass an rtx_insn * from the insn arm.
---
gcc/cse.cc | 2 +-
gcc/rtl.h | 2 +-
gcc/rtlanal.cc | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gcc/cse.cc b/gcc/cse.cc
index d3ada53db3e..230f4706a8e 100644
--- a/gcc/cse.cc
+++ b/gcc/cse.cc
@@ -7165,7 +7165,7 @@ count_reg_usage (rtx x, int *counts, rtx dest, int incr)
/* Things used in a REG_EQUAL note aren't dead since loop may try to
use them. */
- note = find_reg_equal_equiv_note (x);
+ note = find_reg_equal_equiv_note (as_a <rtx_insn *> (x));
if (note)
{
rtx eqv = XEXP (note, 0);
diff --git a/gcc/rtl.h b/gcc/rtl.h
index f3c3708fbb6..fba89b3187e 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -3755,7 +3755,7 @@ extern bool dead_or_set_p (const rtx_insn *, const_rtx);
extern bool 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);
+extern rtx find_reg_equal_equiv_note (const rtx_insn *);
extern rtx find_constant_src (const rtx_insn *);
extern bool find_reg_fusage (const_rtx, enum rtx_code, const_rtx);
extern bool find_regno_fusage (const_rtx, enum rtx_code, unsigned int);
diff --git a/gcc/rtlanal.cc b/gcc/rtlanal.cc
index 98e0481cf79..5e00623d993 100644
--- a/gcc/rtlanal.cc
+++ b/gcc/rtlanal.cc
@@ -2568,7 +2568,7 @@ find_regno_note (const_rtx insn, enum reg_note kind,
unsigned int regno)
has such a note. */
rtx
-find_reg_equal_equiv_note (const_rtx insn)
+find_reg_equal_equiv_note (const rtx_insn *insn)
{
rtx link;
@@ -2586,7 +2586,7 @@ find_reg_equal_equiv_note (const_rtx insn)
This should be changed into an assert. */
if (GET_CODE (PATTERN (insn)) == PARALLEL
- && multiple_sets (as_a<const rtx_insn *> (insn)))
+ && multiple_sets (insn))
return 0;
return link;
}
--
2.53.0