diff mbox series

[OBVIOUS] Remove dead code in IPA ICF.

Message ID 465dafcb-fe93-ef80-0aff-15f0be604aa9@suse.cz
State New
Headers show
Series [OBVIOUS] Remove dead code in IPA ICF. | expand

Commit Message

Martin Liška June 4, 2019, 2:38 p.m. UTC
Hi.

The patch is about a small clean up, I'm going to install that
as obvious.

Martin

gcc/ChangeLog:

2019-06-04  Martin Liska  <mliska@suse.cz>

	* ipa-icf.c (INCLUDE_LIST): Remove.
	(sem_item_optimizer::execute): Remove call to init_wpa.
	* ipa-icf.h (init_wpa): Remove.
---
 gcc/ipa-icf.c | 4 ----
 gcc/ipa-icf.h | 9 ---------
 2 files changed, 13 deletions(-)
diff mbox series

Patch

diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c
index dbfd3640126..6307407935f 100644
--- a/gcc/ipa-icf.c
+++ b/gcc/ipa-icf.c
@@ -52,7 +52,6 @@  along with GCC; see the file COPYING3.  If not see
 */
 
 #include "config.h"
-#define INCLUDE_LIST
 #include "system.h"
 #include "coretypes.h"
 #include "backend.h"
@@ -2543,9 +2542,6 @@  sem_item_optimizer::execute (void)
     fprintf (dump_file, "Dump after hash based groups\n");
   dump_cong_classes ();
 
-  for (unsigned int i = 0; i < m_items.length(); i++)
-    m_items[i]->init_wpa ();
-
   subdivide_classes_by_equality (true);
 
   if (dump_file)
diff --git a/gcc/ipa-icf.h b/gcc/ipa-icf.h
index 6b81eb38b2a..2bf0f156ef6 100644
--- a/gcc/ipa-icf.h
+++ b/gcc/ipa-icf.h
@@ -190,9 +190,6 @@  public:
   /* Dump function for debugging purpose.  */
   DEBUG_FUNCTION void dump (void);
 
-  /* Initialize semantic item by info reachable during LTO WPA phase.  */
-  virtual void init_wpa (void) = 0;
-
   /* Semantic item initialization function.  */
   virtual void init (void) = 0;
 
@@ -325,10 +322,6 @@  public:
 
   ~sem_function ();
 
-  inline virtual void init_wpa (void)
-  {
-  }
-
   virtual void init (void);
   virtual bool equals_wpa (sem_item *item,
 			   hash_map <symtab_node *, sem_item *> &ignored_nodes);
@@ -432,8 +425,6 @@  public:
 
   sem_variable (varpool_node *_node, bitmap_obstack *stack);
 
-  inline virtual void init_wpa (void) {}
-
   /* Semantic variable initialization function.  */
   inline virtual void init (void)
   {