-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Implement apply_switch_int_edge_effects
for backward analyses
#95120
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation looks good for the most part. Left a few comments. When there's a pass that actually uses this it would be good to add a peek test to ensure that it computes the correct results.
* Add lazily computed `switch_sources` data structure * Don't assume a target has only one associated value
848a49b
to
37ebd47
Compare
apply_switch_int_edge_effect
for backward analysesapply_switch_int_edge_effects
for backward analyses
@ecstatic-morse I think 37ebd47 addresses your comments and the bug that I found. |
LGTM. Hopefully this is useful to you. Now that we have 3 different cached computations on MIR bodies with the same implementation, we probably want some sort of generalized framework. |
@bors r+ |
📌 Commit 241ec5b has been approved by |
Rollup of 5 pull requests Successful merges: - rust-lang#94939 (diagnostics: suggest missing comma in bad FRU syntax) - rust-lang#95120 (Implement `apply_switch_int_edge_effects` for backward analyses) - rust-lang#95364 (Add long error explanation for E0667) - rust-lang#95366 (Remove test files with duplicated checksums) - rust-lang#95368 (Fix typo in `String::try_reserve_exact` docs) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
See #94576 for some discussion.
r? @ecstatic-morse