On 9/3/2021 7:57 AM, Aldy Hernandez wrote:
The registry's thread_through_all_blocks() has a may_peel_loop_headers
argument.  When refactoring the backward threader code, I removed this
argument for the local passthru method because it was always TRUE.  This
may not necessarily be true in the future, if the backward threader is
called from another context.  This patch removes the default definition,
in favor of an argument that is exactly the same as the identically
named function in tree-ssa-threadupdate.c.  I think this also makes it
less confusing when looking at both methods across the source base.

Tested on x86-64 Linux.

OK?

gcc/ChangeLog:

        * tree-ssa-threadbackward.c (back_threader::thread_through_all_blocks):
        (back_threader_registry::thread_through_all_blocks):
        (try_thread_blocks):
        (pass_early_thread_jumps::execute):
Presumably this is preparing for addressing some of the issues we discussed via email a little while ago -- ie to avoid having the backwards threader mucking up loops and allowing the loop optimizer to make more decisions about things like peeling because the loop optimizer has a cost model for this stuff whereas the jump threaders to not.

OK.

jeff

Reply via email to