JIT: Only process regular succs for end-of-block PHI insertions #94958
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When inserting PHI args into successors as part of getting to the end of
a block in SSA we really only need to visit regular successors. EH
successors are handled on entry to the try and eagerly when we see
stores.
This also means we can avoid the search to check for duplicate (pred,
SSA num) pairs in many cases. These should really only be possible for
handlers.
There is one questionable case here which is regular control flow from
the end of filters into enclosed handlers. I need to think a bit about
that... I do not think we have correctness problems since we know that
only happens if we came from inside the try, but I dislike that we won't
have an explicit phi arg with the filter as a pred.