From: Trevor Saunders Date: Sun, 14 May 2017 00:39:04 +0000 (+0000) Subject: make a member an auto_sbitmap X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0236bb04126d2700e257ab5d3e52f787ec40c63f;p=gcc.git make a member an auto_sbitmap gcc/ChangeLog: 2017-05-13 Trevor Saunders * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a auto_sbitmap. From-SVN: r248024 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aeb0a3908a2..fd3dcc5c4fe 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-05-13 Trevor Saunders + + * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a + auto_sbitmap. + 2017-05-13 Trevor Saunders * df-core.c (df_set_blocks): Start using auto_bitmap. diff --git a/gcc/tree-ssa-dse.c b/gcc/tree-ssa-dse.c index 90230abe822..3ebc19948e1 100644 --- a/gcc/tree-ssa-dse.c +++ b/gcc/tree-ssa-dse.c @@ -601,16 +601,14 @@ class dse_dom_walker : public dom_walker { public: dse_dom_walker (cdi_direction direction) - : dom_walker (direction), m_byte_tracking_enabled (false) - - { m_live_bytes = sbitmap_alloc (PARAM_VALUE (PARAM_DSE_MAX_OBJECT_SIZE)); } - - ~dse_dom_walker () { sbitmap_free (m_live_bytes); } + : dom_walker (direction), + m_live_bytes (PARAM_VALUE (PARAM_DSE_MAX_OBJECT_SIZE)), + m_byte_tracking_enabled (false) {} virtual edge before_dom_children (basic_block); private: - sbitmap m_live_bytes; + auto_sbitmap m_live_bytes; bool m_byte_tracking_enabled; void dse_optimize_stmt (gimple_stmt_iterator *); };