From 0236bb04126d2700e257ab5d3e52f787ec40c63f Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Sun, 14 May 2017 00:39:04 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-dse.c | 10 ++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aeb0a39..fd3dcc5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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. (df_compact_blocks): Likewise. * df-problems.c (df_rd_confluence_n): Likewise. diff --git a/gcc/tree-ssa-dse.c b/gcc/tree-ssa-dse.c index 90230ab..3ebc199 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 *); }; -- 2.7.4