From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1011) id E28653892034; Fri, 16 Apr 2021 13:25:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E28653892034 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Andrew Macleod To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/aldyh/heads/ranger-relational)] call export from ranger_cache not gori_cache to seed all the blocks. X-Act-Checkin: gcc X-Git-Author: Andrew MacLeod X-Git-Refname: refs/users/aldyh/heads/ranger-relational X-Git-Oldrev: a46d4f912da76bf93d09a68bc0a17abe7f7b2f1e X-Git-Newrev: 2a6b896e652010ecc3667eb2f0979efa2ba30f95 Message-Id: <20210416132526.E28653892034@sourceware.org> Date: Fri, 16 Apr 2021 13:25:26 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2021 13:25:27 -0000 https://gcc.gnu.org/g:2a6b896e652010ecc3667eb2f0979efa2ba30f95 commit 2a6b896e652010ecc3667eb2f0979efa2ba30f95 Author: Andrew MacLeod Date: Thu Apr 15 17:28:52 2021 -0400 call export from ranger_cache not gori_cache to seed all the blocks. Diff: --- gcc/gimple-range-cache.cc | 11 +++++++++++ gcc/gimple-range-gori.cc | 15 --------------- gcc/gimple-range-gori.h | 1 - 3 files changed, 11 insertions(+), 16 deletions(-) diff --git a/gcc/gimple-range-cache.cc b/gcc/gimple-range-cache.cc index 60e26366afe..dbe1018b9db 100644 --- a/gcc/gimple-range-cache.cc +++ b/gcc/gimple-range-cache.cc @@ -613,6 +613,17 @@ ranger_cache::ranger_cache (gimple_ranger &q) : query (q) m_equiv_edge_check.safe_grow_cleared (20); m_equiv_edge_check.truncate (0); m_temporal = new temporal_cache (*this); + + unsigned x, lim = last_basic_block_for_fn (cfun); + // Calculate outgoing range info upfront. This will fully populate the + // m_maybe_variant bitmap which will help eliminate processing of names + // which never have their ranges adjusted. + for (x = 0; x < lim ; x++) + { + basic_block bb = BASIC_BLOCK_FOR_FN (cfun, x); + if (bb) + exports (bb); + } } ranger_cache::~ranger_cache () diff --git a/gcc/gimple-range-gori.cc b/gcc/gimple-range-gori.cc index 1ffa3a4be87..d9dc142d392 100644 --- a/gcc/gimple-range-gori.cc +++ b/gcc/gimple-range-gori.cc @@ -532,23 +532,8 @@ gori_compute::gori_compute () // Create a boolean_type true and false range. m_bool_zero = int_range<2> (boolean_false_node, boolean_false_node); m_bool_one = int_range<2> (boolean_true_node, boolean_true_node); - unsigned x, lim = last_basic_block_for_fn (cfun); - // Calculate outgoing range info upfront. This will fully populate the - // m_maybe_variant bitmap which will help eliminate processing of names - // which never have their ranges adjusted. - for (x = 0; x < lim ; x++) - { - basic_block bb = BASIC_BLOCK_FOR_FN (cfun, x); - if (bb) - exports (bb); - } } -// Destruct a gori_compute_object. - -gori_compute::~gori_compute () -{ -} // Provide a default of VARYING for all incoming SSA names. diff --git a/gcc/gimple-range-gori.h b/gcc/gimple-range-gori.h index 85d5a821800..ba7f5139401 100644 --- a/gcc/gimple-range-gori.h +++ b/gcc/gimple-range-gori.h @@ -146,7 +146,6 @@ class gori_compute : public gori_map { public: gori_compute (); - ~gori_compute (); bool outgoing_edge_range_p (irange &r, edge e, tree name, bool recalc = true); bool has_edge_range_p (tree name, edge e = NULL); void dump (FILE *f);