| 662 | } |
| 663 | |
| 664 | PropagatorState::IterationState* |
| 665 | PropagatorState::FrameState::IncrementIteration(TaggedNodeSeq* ready) { |
| 666 | iteration_count++; |
| 667 | |
| 668 | // Initialize the next iteration. |
| 669 | IterationState* next_iter = |
| 670 | new IterationState(iteration_count, pending_counts, total_input_tensors); |
| 671 | SetIteration(iteration_count, next_iter); |
| 672 | num_outstanding_iterations++; |
| 673 | dead_exits.clear(); |
| 674 | |
| 675 | // Activate the successors of the deferred roots in the new iteration. |
| 676 | ActivateNexts(next_iter, ready); |
| 677 | |
| 678 | // Activate the loop invariants in the new iteration. |
| 679 | ActivateLoopInvs(next_iter, ready); |
| 680 | |
| 681 | return next_iter; |
| 682 | } |
| 683 | |
| 684 | bool PropagatorState::FrameState::CleanupIterations(IterationState* iter_state, |
| 685 | TaggedNodeSeq* ready) { |