See FIXME below:
|
/// 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
See FIXME below:
rust/compiler/rustc_mir_dataflow/src/storage.rs
Lines 4 to 10 in 20dd693
@rustbot label +T-compiler +A-mir