gcc/ChangeLog:
PR tree-optimization/98937
* tree-ssa-strlen.c (strlen_dom_walker::~strlen_dom_walker): Define.
Flush pointer_query cache.
m_cleanup_cfg (false)
{ }
+ ~strlen_dom_walker ();
+
virtual edge before_dom_children (basic_block);
virtual void after_dom_children (basic_block);
bool m_cleanup_cfg;
};
+/* Release pointer_query cache. */
+
+strlen_dom_walker::~strlen_dom_walker ()
+{
+ ptr_qry.flush_cache ();
+}
+
/* Callback for walk_dominator_tree. Attempt to optimize various
string ops by remembering string lengths pointed by pointer SSA_NAMEs. */