Move rustc_passes::liveness
to MIR
#68419
Labels
A-MIR
Area: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-hard
Call for participation: Hard difficulty. Experience needed to fix: A lot.
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Discussion in https://discordapp.com/channels/442252698964721669/443151243398086667/669220265821077535.
The liveness linting code in
rustc_passes::liveness
works on HIR using backwards dataflow. The code is quite complicated and imprecise. Moving it torustc_mir::transform
as a new pass could simplify the compiler, improve maintainability, as well as improve precision (e.g., sub-binding level precision for tuples, structs, and arrays).cc @oli-obk cc @eddyb cc #65467 cc #51003
The text was updated successfully, but these errors were encountered: