From: David Malcolm Date: Fri, 5 Sep 2014 01:24:47 +0000 (+0000) Subject: Params to modified_between_p X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f6bce51a7d9104d0732b318a55eff60bc71ce8d;p=gcc.git Params to modified_between_p gcc/ 2014-09-05 David Malcolm * rtl.h (modified_between_p): Strengthen params 2 and 3 from const_rtx to const rtx_insn *. * rtlanal.c (modified_between_p): Likewise, eliminating a checked cast. From-SVN: r214931 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f4b506d1d3a..60653f84d2b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-09-05 David Malcolm + + * rtl.h (modified_between_p): Strengthen params 2 and 3 from + const_rtx to const rtx_insn *. + * rtlanal.c (modified_between_p): Likewise, eliminating a checked + cast. + 2014-09-05 David Malcolm * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to diff --git a/gcc/rtl.h b/gcc/rtl.h index 23419764f9b..deb206ba2d4 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -2743,7 +2743,7 @@ extern int reg_used_between_p (const_rtx, const rtx_insn *, const rtx_insn *); extern int reg_set_between_p (const_rtx, const_rtx, const_rtx); extern int commutative_operand_precedence (rtx); extern bool swap_commutative_operands_p (rtx, rtx); -extern int modified_between_p (const_rtx, const_rtx, const_rtx); +extern int modified_between_p (const_rtx, const rtx_insn *, const rtx_insn *); extern int no_labels_between_p (const rtx_insn *, const rtx_insn *); extern int modified_in_p (const_rtx, const_rtx); extern int reg_set_p (const_rtx, const_rtx); diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 9b554e228fd..7dc1eeb86d2 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -987,10 +987,8 @@ reg_set_p (const_rtx reg, const_rtx insn) X contains a MEM; this routine does use memory aliasing. */ int -modified_between_p (const_rtx x, const_rtx uncast_start, const_rtx end) +modified_between_p (const_rtx x, const rtx_insn *start, const rtx_insn *end) { - const rtx_insn *start = - safe_as_a (uncast_start); const enum rtx_code code = GET_CODE (x); const char *fmt; int i, j;