https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128996
--- Comment #2 from Andrew Macleod <amacleod at redhat dot com> --- At -O3, complete unrolling exposes a long chain of shared SSA dependencies in one block. These dependencies then feed a series of conditions Backward jump threading and dominator optimization repeatedly ask ranger for edge ranges through that chain. Primarily two things are exposed. 1 - GORI calculations currently proceed until they can't go any more. However, GORI could stop when no new information is being produced. ie, when doing the backward walk, it picks up the current value of an operand and intersects it with the newly calculated reverse walk value, and then proceeds to the next name in the chain. If this intersection provides no new information, then the reverse walk isn't going to provide any additional information that the forward walk didn't provide. THis allows would allow us to terminate the gori walk when this condition is satisfied. 2 - when doing the backward walk, we perform recomputations on outgoing edges. When we are in the middle of a recomputation, we can trigger a nested recomputation which can potentially multiply the situation. This is different than the current param which limits the DEPTH of recomputations. ie b_1 = (int) a_2 c_3 = b_1 + 6 is a recomputation depth of 3 to recompute a_2 (and b_1 and c_3). if the limit were set to one, we would only recompute c_3 from the chain. It has no effect on the nesting iI am referring to. even with a depth of one, we could trigger new recompuations that start the depth counter over again. . We should probably disable nested edge recomputations, either that or factor it into the recomputation depth as well. experiments are underway
