pub struct MaybeTransitiveLiveLocals<'a> {
    always_live: &'a BitSet<Local>,
}
Expand description

Like MaybeLiveLocals, but does not mark locals as live if they are used in a dead assignment.

This is basically written for dead store elimination and nothing else.

All of the caveats of MaybeLiveLocals apply.

Fields

always_live: &'a BitSet<Local>

Implementations

The always_alive set is the set of locals to which all stores should unconditionally be considered live.

This should include at least all locals that are ever borrowed.

Trait Implementations

Updates the current dataflow state with the effect of evaluating a statement.
Updates the current dataflow state with the effect of evaluating a terminator. Read more
Updates the current dataflow state with the effect of a successful return from a Call terminator. Read more
Updates the current dataflow state with the effect of resuming from a Yield terminator. Read more
Updates the current dataflow state with an effect that occurs immediately before the given statement. Read more
Updates the current dataflow state with an effect that occurs immediately before the given terminator. Read more
Updates the current dataflow state with the effect of taking a particular branch in a SwitchInt terminator. Read more
Creates an Engine to find the fixpoint for this dataflow problem. Read more
The type that holds the dataflow state at any given point in the program.
The direction of this analysis. Either Forward or Backward.
A descriptive name for this analysis. Used only for debugging. Read more
Returns the initial value of the dataflow state upon entry to each basic block.
Mutates the initial value of the dataflow state upon entry to the START_BLOCK. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 8 bytes