]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove unused remove_node_from_expr_list
authorAlexander Monakov <amonakov@ispras.ru>
Tue, 19 Jul 2022 15:01:37 +0000 (18:01 +0300)
committerAlexander Monakov <amonakov@ispras.ru>
Wed, 20 Jul 2022 13:10:29 +0000 (16:10 +0300)
This function remains unused since remove_node_from_insn_list was cloned
from it.

gcc/ChangeLog:

* rtl.h (remove_node_from_expr_list): Remove declaration.
* rtlanal.cc (remove_node_from_expr_list): Remove (no uses).

gcc/rtl.h
gcc/rtlanal.cc

index 488016bb42a128916dbcf569d8625cbbca44c76f..645c009a3407b18a4796e080af47d779161b8c18 100644 (file)
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -3712,7 +3712,6 @@ extern unsigned hash_rtx_cb (const_rtx, machine_mode, int *, int *,
 extern rtx regno_use_in (unsigned int, rtx);
 extern int auto_inc_p (const_rtx);
 extern bool in_insn_list_p (const rtx_insn_list *, const rtx_insn *);
-extern void remove_node_from_expr_list (const_rtx, rtx_expr_list **);
 extern void remove_node_from_insn_list (const rtx_insn *, rtx_insn_list **);
 extern int loc_mentioned_in_p (rtx *, const_rtx);
 extern rtx_insn *find_first_parameter_load (rtx_insn *, rtx_insn *);
index d78cc6024007c0df438c4620c0424419c0b33ba7..ec95ecd6cf955b6e5d74c4b36fd0ab00bcc45804 100644 (file)
@@ -2878,35 +2878,6 @@ in_insn_list_p (const rtx_insn_list *listp, const rtx_insn *node)
   return false;
 }
 
-/* Search LISTP (an EXPR_LIST) for an entry whose first operand is NODE and
-   remove that entry from the list if it is found.
-
-   A simple equality test is used to determine if NODE matches.  */
-
-void
-remove_node_from_expr_list (const_rtx node, rtx_expr_list **listp)
-{
-  rtx_expr_list *temp = *listp;
-  rtx_expr_list *prev = NULL;
-
-  while (temp)
-    {
-      if (node == temp->element ())
-       {
-         /* Splice the node out of the list.  */
-         if (prev)
-           XEXP (prev, 1) = temp->next ();
-         else
-           *listp = temp->next ();
-
-         return;
-       }
-
-      prev = temp;
-      temp = temp->next ();
-    }
-}
-
 /* Search LISTP (an INSN_LIST) for an entry whose first operand is NODE and
    remove that entry from the list if it is found.