On 9/19/2021 9:37 AM, Aldy Hernandez wrote:
Every time we allocate a threading edge we push it onto the path in a
distinct step.  There's no need to do this in two steps, and avoiding
this, keeps us from exposing the internals of the registry.

I've also did some tiny cleanups in thread_across_edge, most importantly
removing the bitmap in favor of an auto_bitmap.

There are no functional changes.

OK pending tests?

gcc/ChangeLog:

        * tree-ssa-threadbackward.c
        (back_threader_registry::register_path): Use push_edge.
        * tree-ssa-threadedge.c
        (jump_threader::thread_around_empty_blocks): Same.
        (jump_threader::thread_through_normal_block): Same.
        (jump_threader::thread_across_edge): Same.  Also, use auto_bitmap.
        Tidy up code.
        * tree-ssa-threadupdate.c
        (jt_path_registry::allocate_thread_edge): Remove.
        (jt_path_registry::push_edge): New.
        (dump_jump_thread_path): Make static.
        * tree-ssa-threadupdate.h (allocate_thread_edge): Remove.
        (push_edge): New.
OK
jeff

Reply via email to