* cfg.c (reset_original_copy_tables): New func.
* cfg.h (reset_original_copy_tables): New decl.
From-SVN: r241095
+2016-10-13 Bin Cheng <bin.cheng@arm.com>
+
+ * cfg.c (reset_original_copy_tables): New func.
+ * cfg.h (reset_original_copy_tables): New decl.
+
2016-10-13 Jakub Jelinek <jakub@redhat.com>
PR c/77946
loop_copy = new hash_table<bb_copy_hasher> (10);
}
+/* Reset the data structures to maintain mapping between blocks and
+ its copies. */
+
+void
+reset_original_copy_tables (void)
+{
+ gcc_assert (original_copy_bb_pool);
+ bb_original->empty ();
+ bb_copy->empty ();
+ loop_copy->empty ();
+}
+
/* Free the data structures to maintain mapping between blocks and
its copies. */
void
extern void scale_bbs_frequencies_gcov_type (basic_block *, int, gcov_type,
gcov_type);
extern void initialize_original_copy_tables (void);
+extern void reset_original_copy_tables (void);
extern void free_original_copy_tables (void);
extern void set_bb_original (basic_block, basic_block);
extern basic_block get_bb_original (basic_block);