-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
See FIXME below:
rust/compiler/rustc_mir_dataflow/src/storage.rs
Lines 4 to 10 in 20dd693
/// The set of locals in a MIR body that do not have `StorageLive`/`StorageDead` annotations. | |
/// | |
/// These locals have fixed storage for the duration of the body. | |
// | |
// FIXME: Currently, we need to traverse the entire MIR to compute this. We should instead store it | |
// as a field in the `LocalDecl` for each `Local`. | |
pub fn always_live_locals(body: &mir::Body<'_>) -> BitSet<Local> { |
@rustbot label +T-compiler +A-mir
Metadata
Metadata
Assignees
Labels
A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.