Params to modified_between_p
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Sep 2014 01:24:47 +0000 (01:24 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Sep 2014 01:24:47 +0000 (01:24 +0000)
gcc/
2014-09-05  David Malcolm  <dmalcolm@redhat.com>

* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214931 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/rtl.h
gcc/rtlanal.c

index f4b506d..60653f8 100644 (file)
@@ -1,5 +1,12 @@
 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
 
+       * 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  <dmalcolm@redhat.com>
+
        * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
        fixup_args_size_notes.
        * expr.c (fixup_args_size_notes): Strengthen first two params from
index 2341976..deb206b 100644 (file)
--- 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);
index 9b554e2..7dc1eeb 100644 (file)
@@ -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 <const rtx_insn *> (uncast_start);
   const enum rtx_code code = GET_CODE (x);
   const char *fmt;
   int i, j;