https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103409

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Aldy Hernandez <al...@gcc.gnu.org>:

https://gcc.gnu.org/g:54ebec35abec09a24b47b997172622ca0d8e2318

commit r12-5694-g54ebec35abec09a24b47b997172622ca0d8e2318
Author: Aldy Hernandez <al...@redhat.com>
Date:   Mon Nov 29 14:49:59 2021 +0100

    path solver: Use only one ssa_global_cache.

    We're using a temporary range cache while computing ranges for PHIs to
    make sure the real cache doesn't get set until all PHIs are computed.
    With the ltrans beast in LTO mode this causes undue overhead.

    Since we already have a bitmap to indicate whether there's a cache
    entry, we can avoid the extra cache object by clearing it while PHIs
    are being calculated.

    gcc/ChangeLog:

            PR tree-optimization/103409
            * gimple-range-path.cc (path_range_query::compute_ranges_in_phis):
            Do all the work with just one ssa_global_cache.
            * gimple-range-path.h: Remove m_tmp_phi_cache.

Reply via email to