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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andrew Macleod <amacl...@gcc.gnu.org>:

https://gcc.gnu.org/g:40c7f943e882e8c5eccf45fc28146559f446764d

commit r14-271-g40c7f943e882e8c5eccf45fc28146559f446764d
Author: Andrew MacLeod <amacl...@redhat.com>
Date:   Tue Apr 25 15:33:52 2023 -0400

    Don't save ssa-name pointer in dependency cache.

    If the direct dependence fields point directly to an ssa-name,
    its possible that an optimization frees an ssa-name, and the value
    pointed to may now be in the free list.   Simply maintain the ssa
    version number instead.

            PR tree-optimization/109417
            * gimple-range-gori.cc (range_def_chain::register_dependency):
            Save the ssa version number, not the pointer.
            (gori_compute::may_recompute_p): No need to check if a dependency
            is in the free list.
            * gimple-range-gori.h (class range_def_chain): Change ssa1 and ssa2
            fields to be unsigned int instead of trees.
            (ange_def_chain::depend1): Adjust.
            (ange_def_chain::depend2): Adjust.
            * gimple-range.h: Include "ssa.h" to inline ssa_name().

Reply via email to