On Fri, Dec 3, 2021 at 9:41 PM Andrew MacLeod via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > has_edge_range_p() and may_recompute_p() currently only take an optional > edge as a parameter. They only indicate if a range *might* be > calculated for a name, but they do not do any calculations. > > To determine the results, they always consult the exports for the > edge->src block. the value is true or false for every edge, so its > really a basic block property. This patch makes the option available to > consult directly with the BB, and calls that for the edge version. > > Without this, if you want to know if a basic block can affect a range, > you have to pick an arbitrary outgoing edge and ask with that.. which > seems a little awkward. > > This patch is used by the next one. > > Bootstrapped on x86_64-pc-linux-gnu with no regressions. OK?
OK. > > Andrew