Expand description

The general point of the optimizations provided here is to simplify something like:

match x {
    Ok(x) => Ok(x),
    Err(x) => Err(x)
}

into just x.

Structs

Simplifies arms of form Variant(x) => Variant(x) to just a move.
Simplifies SwitchInt(_) -> [targets], where all the targets have the same form, into goto -> target_first.
VarField 🔒

Enums

Statics

CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
CALLSITE 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒
META 🔒

Functions

Match on:
Match on:
Match on:
Match on ((_LOCAL as Variant).FIELD: TY).
try_eat 🔒
Eats consecutive Statements which match test, performing the specified action for each. The iterator stmt_iter is not advanced if none were matched.
Eats consecutive Assign Statements.
Eats consecutive StorageLive and StorageDead Statements. The iterator stmt_iter is not advanced if none were found.

Type Definitions

StmtIter 🔒